Order in "if"
#2

From what I understand, you mean something like:
pawn Код:
if(case 1 is false && case 2 is true)
{
}
No, the second part will not be evaluated, this checks if both are true.

You need to do the following:
pawn Код:
if(case 1 || case 2)
{
}
This will check if one of the cases is true.

Or you can do two "if"s, like the following:
pawn Код:
if(case 1)
{
}
else if(case 2)
{
}
Good luck.
Reply


Messages In This Thread
Order in "if" - by dusk - 08.09.2013, 12:07
Re: Order in "if" - by JimmyCh - 08.09.2013, 12:37

Forum Jump:


Users browsing this thread: 2 Guest(s)