Computer Science Canada

Help needed with "if" statements.

Author:  chimerix [ Wed Dec 16, 2009 12:24 pm ]
Post subject:  Help needed with "if" statements.

How do you put two conditions in one if statement?

I am a noob.

Author:  mirhagk [ Wed Dec 16, 2009 12:35 pm ]
Post subject:  RE:Help needed with "if" statements.

code:

if (x==5&&y==4)
{
}

or

code:

if (x==5||y==4)
{
}

the first one is both and the second one is or.

I believe that's in your learning guide Jesse Li

Author:  chimerix [ Wed Dec 16, 2009 8:33 pm ]
Post subject:  RE:Help needed with "if" statements.

Whos Jesse Li

Author:  mirhagk [ Thu Dec 17, 2009 11:58 am ]
Post subject:  RE:Help needed with "if" statements.

lol never mind theres a kid in my class who was asking my friend that question first period


: