not: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page not to Not without leaving a redirect: Converting page title to first-letter uppercase)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 7: Line 7:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
not(param1)
not(param1)
</source>
</syntaxhighlight>
'''Parameters'''
'''Parameters'''
{{param|param1|Number}}
{{param|param1|Number}}
Line 15: Line 15:


|example=
|example=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[h: someVar = 13]
[h: someVar = 13]
[r: not(someVar)]
[r: not(someVar)]
[r: not(0)]
[r: not(0)]
</source>
</syntaxhighlight>
'''Returns:'''
'''Returns:'''
<source lang="mtmacro">
<syntaxhighlight lang="mtmacro">
0
0
1
1
</source>
</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