Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hate Nested IFs? Consider this...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01086217
Message ID:
01086307
Views:
11
>>Mark,
>>and why not with more conditions in ONE line ;o)
>>
>>LOCAL llSuccess
>>llSuccess = .F.
>>IF 1st_Logical_Test AND 2nd_Logical_Test AND 3rd_Logical_Test
>>   llSuccess = .T.
>>ENDIF
>>RETURN llSuccess
>
>Or even
>
>
>llSuccess = 1st_Logical_Test AND 2nd_Logical_Test AND 3rd_Logical_Test
>
>
>Although I do not believe it was Mark's point <g>

Right. That was not my point. My point was addressing nested IFs for those instances where putting all this on one line does not work well for the developer (or for the NEXT developer for that matter).
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform