Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
If Statement
Message
De
05/02/2003 23:32:41
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Divers
Thread ID:
00749665
Message ID:
00749707
Vues:
30
Hey Fred, glad to help!!

(Did you notice that I only answer the easy ones? I leave the hard ones for Cathi!! <g>)

~~Bonnie


>Hi Bonnie,
>Thats great. I don't know what I'l do without you guys.
>
>Thank You
>
>regards
>
>>Hi Fred,
>>
>>Try this:
>>
>>if (x == 1 || x == 2)
>>{
>>  //do something
>>}
>>else
>>{
>>  //do something else
>>}
>>
>>
>>The || means OR ... if you want AND, use &&. You must use == (one = means assignment).
>>
>>Also, if you only have one statement following the if or the else, you don't have to use the curly brackets.
>>
>>HTH,
>>
>>~~Bonnie
>>
>>
>>>Hi guys,
>>>I need some basic help
>>>
>>>in VFP we can use the foll if statement
>>>if x=1 or x = 2
>>> do something
>>>else
>>> do something else
>>>endif
>>>
>>>how can I do this in C# ?
>>>
>>>Regards
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform