>I'm sure that this has already been covered.
>
>Any real benefits to use iif instead of if...else...endif?
IIF() can be used inline where you can't use a statement block.
Also I use iif() in normal code to provide more readable code rather than if .. else .. endif when the content is simple.
Cetin