$iif() is pretty much the same as if (), except used 'inline'.

//echo -ag $iif(1 == 1,true,false) :: $iif(this == that,true,false) :: $iif($server,$v1,not connected)