Mel - Maya Embedded Language

Boolean Operators

Booleans are used for making comparision and have one of two states... true or false. Booleans can also be called using the following:

true, yes, on, 1
false, no, off, 0
here are some examples using a boolean
$a = yes;
$b = false;

if ($a)
print ("\n a is: "+$a);
if(!$b)
print ("\n b is: "+$b);
you could check to see if an integer value is set to greater than 0 ((FALSE)) as such:
int $c = 15;
if ($c)
print "\nc is true";
else
print "\nc is not true";
Try changing th value of $c to 0.