not: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
|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