Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AND and OR evaluations in conditional statements
Message
 
To
07/04/1999 23:53:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00206066
Message ID:
00206341
Views:
17
>Do you say that AND and OR has the same priority?
>
>Vlad
>
>>They are evaluated from left to right but you can remove all questions by using the appropriate parens.

Vlad,

Yes they are evaluate from left to right as in;

a=.T.
b = .F.
c = .T.

?a or b and c && .T.

a = .f.

?a or b and c && .F.

b = .t.
?a or b and c && .T.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform