Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
If statement
Message
De
07/01/2004 10:05:01
 
 
À
07/01/2004 09:58:17
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00864637
Message ID:
00864644
Vues:
13
This message has been marked as the solution to the initial question of the thread.
>Not sure how to do this.
>
>I would like my if condition to incorporate the AND statement or OR statement
>
>If (x = 1) AND (x=3)
>{
>
>}
>
>
>What is the appropriate syntax for this?

If ((x == 1) & (x == 3))

OR to short circuit:

If ((x == 1) && (x == 3))
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform