Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which Should I Use IF/ENDIF or IIF
Message
From
17/06/2002 12:56:10
 
 
To
17/06/2002 12:12:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00668532
Message ID:
00669313
Views:
31
This thread reminds me of the M. and not to M. thread arguing the merits of using M. or not when referencing memvars. This too appears to be a matter of programming style and whatever works for you.

To me readability is a good case for using If...Else...Endif in most cases, but there is no strict rule, and it appears that there is not significant performance differences either way unless you get into millions of iterations.

I use iif(...) in reports and sometimes when assigning values to variables when the conditions are not too complex.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform