: 1 < 2 < 3
true
: 3 > 2 > 1
false
...
...
: 3 > 2 && 2 > 1
true
Maybe I'm really over thinking things, but I would assume that they'd both evaluate to true. Why does it not?
: 1 < 2 < 3
true
: 3 > 2 > 1
false
...
...
: 3 > 2 && 2 > 1
true
Maybe I'm really over thinking things, but I would assume that they'd both evaluate to true. Why does it not?
Because 1 < 2
evaluates as true
which is less than 3
,
but 3 > 2
which also evaluates as true
is NOT greater than 1
Because 3 > 2
evaluates to true
then true > 1
evaluates to 1 > 1
which is false