i need help with the IF thing
can somebody here can tell me how to use it
(i tryed a lot of thing and they all dont work)
- Code: Select all
if ()
{
}
if ()
{
}
this = 0; (this is false)
if (this)
{
// do something
} else { // since "this" is 0
// do something else
}
this = 0; (this is false)
that = 1; (that is true)
if (this)
{
// do something
} else { // since "this" is 0
if (that == 1) // or just write "if (that)" (if that is true)
{
// do that
}
}
if(var==1)
{
//do something
}
if(var==2)
{
//do something else
}
if(var==3)
{
//do something
}
if(var>=4)
{
//do something
}
if(var==1)
{
//do something
}
else if(var==2)
{
//do something else
}
else if(var==3)
{
//do something
}
else if(var>=4)
{
//do something
}
if(var==1)
{
//do something
}
else if(var==2)
{
//do something else
}
if(var2!=1 && var==3)
{
//do something
}
else if(var2>var)
{
//do something else
}
if(var<=10)//put the action here
if(var<=10)
{
//action here
}
Users browsing this forum: No registered users and 1 guest