Revising the "else if" function
#1

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

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

PHP код:
#define elif else if 
Reply
#4

Nevermind, I got it. Thanks tho
Reply
#5

also else if is not a function
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)