Efficiency of IF statements
#4

Quote:
Originally Posted by Vince
Посмотреть сообщение
You're looking in wrong places to optimize code.
Why is that? Let's say the code is in a loop, OnPlayerUpdate, or OnPlayerTakeDamage, it's really important even in the tiny bit.

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
pawn Код:
if (usuallyfalse && GetPVarInt(playerid, "bar"))
That checks if usuallyfalse is true, and if it is true, it will execute the next statement and so on.
So as soon as usuallyfalse is false, and it gets to the && part, it stops executing, without checking the next statement?
Reply


Messages In This Thread
Efficiency of IF statements - by Bharel - 19.06.2013, 20:28
Re: Efficiency of IF statements - by Vince - 19.06.2013, 20:31
Re: Efficiency of IF statements - by Emmet_ - 19.06.2013, 20:33
Re: Efficiency of IF statements - by Bharel - 19.06.2013, 20:33
Re: Efficiency of IF statements - by IstuntmanI - 19.06.2013, 20:55

Forum Jump:


Users browsing this thread: 1 Guest(s)