A comparison using a binary operator can be, for example x<1, which returns 1 (true) if 
x is smaller than 1and 0 (false) otherwise. For a composite comparison such as 0
 < x < 1, you can achieve it using 
(0<x)*(x<1). An expression like 
0<x<1 is possible to use but is evaluated as 
(0<x)<1, which for an 
x in the interval is interpreted as 
1<1 and thus returns 0 instead of 1 for all such value of 
x.