User Tools

Site Tools


modding:function:not

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
modding:function:not [2014/12/27 04:40] – external edit 127.0.0.1modding:function:not [2017/01/28 03:47] (current) 0xabcdef
Line 7: Line 7:
 ^ Syntax | (not exp) -> True/Nil | ^ Syntax | (not exp) -> True/Nil |
 ^ Arguments | exp: The expression you want to negate. | ^ Arguments | exp: The expression you want to negate. |
-^ Returns | condition: True if the expression evaluates to Nil, otherwise Nil. |+^ Returns | condition: **True** if the expression evaluates to **Nil, otherwise Nil**If there is no expression, then always **Nil** |
 ^ Category | [[logical operator functions|logical operator]] | ^ Category | [[logical operator functions|logical operator]] |
 ^ Description | Returns the logical negation of the expression. | ^ Description | Returns the logical negation of the expression. |
Line 19: Line 19:
 (not (eq 1 2)) -> True (not (eq 1 2)) -> True
  
-(not (gr 2 1)) -> Nil</code>+(not (gr 2 1)) -> Nil 
 + 
 +(not 5) -> Nil 
 + 
 +(not "foo") -> Nil 
 + 
 +(not not) -> Nil 
 + 
 +</code>
  
 Return to [[:Functions]] list Return to [[:Functions]] list
modding/function/not.1419655255.txt.gz · Last modified: 2017/01/28 02:46 (external edit)