View Single Post
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 02-12-2009 , 16:41   Re: efficiency, if for escaping function question
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
Ok, I understand your reason for order but my question is: should I use if if if or just the single if?

You posted code in both forms (one with your order and one without) which has confused me .

If I assumed something I would assume the if if if with your order would be most efficient.
Since the Pawn compiler is dumb (does no optimizations) using a single if() statement with multiple conditions should generate less code than separated statements. That'd not be the case in any 'good' compiler.
__________________

Community / No support through PM
danielkza is offline