n
Printable View
n
Thanks for the clear question man!Quote:
Originally posted by nectron101
n
If you want to see if, for example, the variable argh is set to 7, you use the == operator, like thisCode:if(condition)
{
...
}
If you just do this, the if statement will be true as long as argh is something other than 0:Code:if(argh==7)
{
...
}
making that code the same as this:Code:if(argh)
{
...
}
Code:if(argh!=0)
{
...
}