In addition, if you need a check that treats 0 as a number, then you will want to use a standard comparison (checking if something isnum or > or < or == to something).
As an example:
//echo -a $iif(0 isnum 0-5,1,2)
You can also check specifically for $null or $false...
//echo -a $iif(0 != $null,1,2)
//echo -a $iif(0 != $false,1,2)
Last edited by Riamus2; 09/06/11 01:54 PM.