Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Iif and if else end
Message
From
14/02/2001 18:05:31
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00476073
Message ID:
00476076
Views:
30
>can use this:
>
>iif(newuep = 0,hlduep = paycalc.unemp_ins_pct,hlduep = newuep)
>
>instead of this:
>
>if newuep = 0
> hlduep = paycalc.unemp_ins_pct &&writeback unemployeed insure %
>else
> hlduep = newuep &&writeback unemployeed insure %
>endif
>
>
>will the iif set the values or is iif only used for returning a true and false value.

But what you *could* do is
hlduep = IIF(newuep=0,paycalc.unemp_ins_pct,newuep)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform