No good reason. It has been invented by people who do not understand logical expressions. It also makes code harder to read
>Is there any reason to use
>
iif(lExp, .t., .f.)
>instead of lExp itself? The values this iif() returns are identical to the value of lExp.
>
>I wonder who invented this redundant way of writing it. I've seen it a hundred times, and still don't get it, why would anyone write it that way. Just like
>
if lExpr = .t.
>is identical to
>
if lExpr
--sb--