Is there some kind of operation like this?
Great question! The answer is no, no, but I wanted it to be.
The answer to Latin is good, but it is not designed for short circuit. Therefore, if the first test fails, the remaining subexpressions are still evaluated, although their results are not relevant.
FWIW, in Mathematica you can do 1<x<2 just like math.
source share