Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Order-of-precedence
Message
De
27/06/2002 09:17:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
27/06/2002 09:12:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00672839
Message ID:
00672843
Vues:
8
Thanks, that was exactly what I was looking for.

Basically, I wasn't sure whether I could omit the parentheses in an expression of the type:
(A and B) or (C and D)

or:

(A or B) and (C or D)
I now see that, because of precedence, I can omit parentheses in the first case, but not in the second.

Hilmar.


>1) Precedence
>
>( )
>
>NOT, !
>
>AND
>
>OR
>
>
>(2) documented in the help under Logical Operators
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform