>I'm sure that this has already been covered.
>
>Any real benefits to use iif instead of if...else...endif?
IIF() is a function and IF is a statement. They are not always interchangeable. I would use IIF() when condition is simple and easily can be replaced with IIF(). It's more readable for me. For example
IF a=b
c=3
ELSE
c=4
ENDIF
c = IIF(a=b, 3, 4)
Also following IF I've seen many times can be simplified w/o using IIF()
IF a=b
llSomething = .T.
ELSE
llSomething = .F.
ENDIF
llSomething = (a=b)
--sb--