Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Iif(lExp, .t., .f.)?
Message
From
21/01/2010 12:50:35
 
 
To
21/01/2010 11:51:16
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01445223
Message ID:
01445242
Views:
168
This message has been marked as the solution to the initial question of the thread.
Only if lExp is null


It is the equivalent of
nvl(lExp, .f.)

>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
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform