
-----------------------------------
chimerix
Wed Dec 16, 2009 12:24 pm

Help needed with &quot;if&quot; statements.
-----------------------------------
How do you put two conditions in one if statement?

I am a noob.

-----------------------------------
mirhagk
Wed Dec 16, 2009 12:35 pm

RE:Help needed with &quot;if&quot; statements.
-----------------------------------
[code]
if (x==5&&y==4)
{
}
[/code]
or

[code]
if (x==5||y==4)
{
}
[/code]
the first one is both and the second one is or.

I believe that's in your learning guide Jesse Li

-----------------------------------
chimerix
Wed Dec 16, 2009 8:33 pm

RE:Help needed with &quot;if&quot; statements.
-----------------------------------
Whos Jesse Li

-----------------------------------
mirhagk
Thu Dec 17, 2009 11:58 am

RE:Help needed with &quot;if&quot; statements.
-----------------------------------
lol never mind theres a kid in my class who was asking my friend that question first period
