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

Click here to load this message in the networking platform