not: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Created page with "{{MacroFunction |name=not |proposed=false |trusted=false |description= This performs logical negation on the parameter. |usage= <source lang="mtmacro" line> not(param1) </sou...")
 
No edit summary
Line 4: Line 4:
|trusted=false
|trusted=false
|description=
|description=
This performs logical negation on the parameter.
This performs logical negation on the provided parameter.


|usage=
|usage=

Revision as of 22:51, 22 May 2020

not() Function

This performs logical negation on the provided parameter.

Usage

not(param1)

Parameters

  • param1 - Number

Example

[h: someVar = 13]
[r: not(someVar)]
[r: not(0)]

Returns:

0
1