Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AND and OR evaluations in conditional statements
Message
 
À
09/04/1999 02:14:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00206066
Message ID:
00206812
Vues:
16
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform