Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF()
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: IIF()
Miscellaneous
Thread ID:
00095089
Message ID:
00095147
Views:
23
>Hello,
> Is an IIF() faster than an If-Else-Endif statement?

I remember reading that the IIF is faster than the IF Else Endif, but the speed increase may not out way the readability of the code. I dont have too much problems with the one level IIF, but when nesting is done, you should increase your documentation of that code proportionally. Try debugging IIF(MONTH(DATE())<=3,2,IIF(MONTH(DATE())<=6,3,IIF(MONTH(DATE())<=9,4,1)))
Bret Hobbs

"We'd have been called juvenile delinquents only our neighborhood couldn't afford a sociologist." Bob Hope
Previous
Reply
Map
View

Click here to load this message in the networking platform