Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AND and OR evaluations in conditional statements
Message
 
To
09/04/1999 02:14:52
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00206066
Message ID:
00206812
Views:
17
>While f() + g() * h() may give you the following operand evaluation order in time: f, g, h. (Which is what VFP does!) This doesn't mean + is evaluated before *.
>
>Vlad

Vlad,

But * IS evaluated before + is every case;

?5+2*7 && 19
?2*7+5 && 19
?7*2+5 && 19

The multiplication is always done before the addition.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform