false: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Create the page)
 
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{stub}}
Constant with the value 0, representing a false value in macros.
{{SpecialVariable
 
|name=false
==Usage==
|version=1.8.0
|description=Constant representing a false (0) value in MTScript.


|usage=
<syntaxhighlight lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
false
false
</syntaxhighlight>
</syntaxhighlight>


}}
==Examples==
 
<syntaxhighlight lang="mtmacro" line>
[h: setMapVisible(false)]
</syntaxhighlight>
This example is the same as
<syntaxhighlight lang="mtmacro" line>
[h: setMapVisible(0)]
</syntaxhighlight>
 
==Notes==
 
Although {{code|false}} is the same as the number {{code|0}}, it can be more descriptive in cases where a true/false value is expected.
 
==Related Pages==
 
* [[true]]


[[Category:Special Variable]]
[[Category:Special Variable]]
{{DISPLAYTITLE:false (Special Variable)}}
Pages with ignored display titles

Latest revision as of 23:59, 4 July 2023

Constant with the value 0, representing a false value in macros.

Usage

false

Examples

[h: setMapVisible(false)]

This example is the same as

[h: setMapVisible(0)]

Notes

Although false is the same as the number 0, it can be more descriptive in cases where a true/false value is expected.

Related Pages

Pages with ignored display titles