Can’t believe I’m resorting to going on Stack Overflow to ask this rather than Google it, but is there a way to have multiple values in one if statement? For example, rather than using:
if ($var == 'value' || $var == 'othervalue') :
return true;
endif;
…you could do something along the lines of:
if ($var == ('value' || 'othervalue')) :
return true;
endif;
I know it’s probably a very basic yes/no answer, but it’s just something I’ve wanted to know but never really had the time to look up.
Something like this: