Let me explain $iif for you,
We have variable %var
But we are not sure if its set or not, and wants to run a check.
in a $iif statement, it would look like: $iif(%var,do this, else this)
To put it out in normal if\'s;
if %var { do this } else { do this }