and, not, or

and, not, or — are the same as the corresponding Logical Operators.

Syntax


and (!condition[,!condition]...)
not (condition)
or (!condition[,!condition]...)

		

Arguments

condition

Any Gamma or Lisp expression.

Returns

Non-nil or nil.

Examples

Gamma> not(6);
nil
Gamma> not(nil);
t

Gamma> and(5<6,string("hi ","there"));
"hi there"
Gamma> and(5>6,string("hi ","there"));
nil

Gamma> x = 5;
5
Gamma> y = 6;
6
Gamma> or(x == 3, y == 0);
nil
Gamma> or(x == 3, y == 6);
t
Gamma>  
		

See Also

Logical Operators