Er, $iif can be used with 2 parameters, $iif(blah,do this), returns do this or $null depending if its true or false..