Efficiency of IF statements
#1

My question is a bit theoretical. What would be more efficient?
Using "if (bool:usuallyfalse && GetPVarInt(playerid, "bar") > 0)"
or
Код:
if (bool:usuallyfalse){
if(GetPVarInt(playerid, "bar") > 0){
Does an IF statement, check both statements when called? or does it check one after the other?
If it checks both, the second version will be more efficient. If it checks one after the other, the first version will be.
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: 4 Guest(s)