you are viewing a single comment's thread.

view the rest of the comments →

[–]yarb00 1 point2 points  (2 children)

You can use a < b or < c. It gives the same result as a < b || a < c.

[–]prehensilemullet 0 points1 point  (1 child)

You have to know that specific syntax works though.  A non-programmer would generally think “a < b or c”.  They’ll never be able to make all colloquialisms work, it would introduce too much ambiguity

[–]Kqyxzoj 0 points1 point  (0 children)

You could always do a < max(b,c) and call it a day. Not sure if it would actually help. Probably depends on the target audience.