Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Operators: and, or
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01256214
Message ID:
01256216
Views:
15
Not only you can but you should use parenthesis to make sure that expressions are evaluated in the order you want not in the order of precedence. Also NOT is unary operator so b NOT x is invalid expression.


>Can I use ( ) in VFP to write different expressions as below ?
>
>
>IF a AND b = x OR a AND b NOT x
>
>IF (a AND b = x) OR (a AND b NOT x)
>
>
>Moises
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform