User Tools

Site Tools


modding:function:not

not

not

not

Syntax (not exp) → True/Nil
Arguments exp: The expression you want to negate.
Returns condition: True if the expression evaluates to Nil, otherwise Nil. If there is no expression, then always Nil
Category logical operator
Description Returns the logical negation of the expression.

Example

(not Nil) -> True
 
(not True) -> Nil
 
(not (eq 1 2)) -> True
 
(not (gr 2 1)) -> Nil
 
(not 5) -> Nil
 
(not "foo") -> Nil
 
(not not) -> Nil

Return to Functions list

modding/function/not.txt · Last modified: 2017/01/28 03:47 by 0xabcdef