Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AND and OR evaluations in conditional statements
Message
From
12/04/1999 21:09:42
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00206066
Message ID:
00207666
Views:
15
Yes, David, and I think that all sums it up nicely.

Cheers,

Jim N

>Jim
>
>The only things I'd add are:
>
>1) The precedence of NOT is higher than AND
>
>2) VFP optimization may mean the entire logical expression is not evaluated
>
>>David,
>>So what's your final answewr here?
>>
>>Mine is, and has always been, that:
>>
>>1) Precedence applys to the attachment of operands to operators, which clearly has to be done *first* before the expression can be evaluated.
>>
>>2) The evaluation of the expression proceeds from left to right in every case.
>>
>>3) Parenthesis are invaluable in limiting confusion - we haven't yet talked about good old "NOT", which really gums things up.
>>
>>Is that what you summarize it to be, or do you have some different take?
Previous
Reply
Map
View

Click here to load this message in the networking platform