The only place in my UDFs where I could see potential use of IIF is to simplify the following type of IF construct:
code:
; example
if @INWIN=1
$os='Windows NT/2000/XP'
else
$os='Windows 9x'
endif
; replaced example
$os=IIF(@INWIN=1,'Windows NT/2000/XP','Windows 9x')

and similar plain value-assigning IF constructs.
_________________________
There are two types of vessels, submarines and targets.