Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

shortened if

Name: Suddenly, Bananas 2013-02-10 14:26

Do any languages allow you to shorten an if statement like this:
if (test == a || test == b || test == c || test == d)
to something like this:
[code]if (test == a || b || c || d)
?

Name: Anonymous 2013-02-10 14:31

>>3
Yes fucking obviously, >>1 was asking whether there existed some syntax similar to that which matched the semantics of the first expression.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List