not: Difference between revisions
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 |
||
(4 intermediate revisions by 3 users not shown) | |||
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= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
not(param1) | not(param1) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
{{param|param1|Number}} | {{param|param1|Number}} | ||
Line 15: | Line 15: | ||
|example= | |example= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[h: someVar = 13] | [h: someVar = 13] | ||
[r: not(someVar)] | [r: not(someVar)] | ||
[r: not(0)] | [r: not(0)] | ||
</ | </syntaxhighlight> | ||
'''Returns:''' | '''Returns:''' | ||
< | <syntaxhighlight lang="mtmacro"> | ||
0 | 0 | ||
1 | 1 | ||
</ | </syntaxhighlight> | ||
}} | }} | ||
[[Category:Macro Function]] | [[Category:Macro Function]] | ||
[[Category:Logical Function]] | [[Category:Logical Function]] |
Latest revision as of 23:59, 14 March 2023
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