Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AND and OR evaluations in conditional statements
Message
From
09/04/1999 12:37:59
 
 
To
09/04/1999 02:05:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00206066
Message ID:
00206952
Views:
19
I was understanding you all along until this line:
>
>I wanted to say that "a or b and c" is in fact "a or (b and c)". That doesn't mean the operation between parentheses is evaluated first.
>
Doesn't precedence of operators as well as the parentheses that you supplied mean exactly that the operation in the parentheses IS evaluated first. So in your example with the parentheses isn't (b or c) evaluated then the result is ORed with a? Without resorting to semantics something with higher precedence PRECEDES, that is happens first in time.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform