SA-MP Forums Archive
Revising the "else if" function - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Revising the "else if" function (/showthread.php?tid=635257)



Revising the "else if" function - NealPeteros - 04.06.2017

Is there any possible way to make an alternative of the "else if" function? Like through #define?


Re: Revising the "else if" function - Vince - 04.06.2017

Having too use many "else if" is usually a sign of bad design. See if you can use switches, arrays or early returns.


Re: Revising the "else if" function - OneDay - 04.06.2017

PHP код:
#define elif else if 



Re: Revising the "else if" function - NealPeteros - 04.06.2017

Nevermind, I got it. Thanks tho


Re: Revising the "else if" function - SyS - 04.06.2017

also else if is not a function