Multiple Requirenment for If statments

I don't know how to have multiple requirements for if statments, like do this if a = 0 and b = 0. I googled it and searched this site but could not find any data. Please Help!!
closed account (z05DSL3A)
1
2
3
4
if((a==0) && (b==0))
{
//do whatever
}
Thanks Alot!!! It works good and that was really quick. :)
You also have
1
2
3
4
if(a==0 || b == 0)
{
     DoStuff();
}


which is logical OR. Will return true if either of the statements are true.
Topic archived. No new replies allowed.