You are right!

I got confused with shortening the $iif($did().state,0,1) backwards approach that wims used :P