Mel - Maya Embedded Language

Logical Operators

Use logical operators when you want to compair two or more values.
||
      or
      a || b
&&
      and
      a && b
!
      not
      1a
here is an example using the and plus the or operator
if(( 2 < 3 && 3 > 1 ) || ( 2>0 && 0>-1 ))
print "this is true";
else
print "this is false";
In this example we use the not operator
if(!(5 < 3 && 3 > 1 ))
print "this is False";