true: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Create the page)
 
(The the page out some more)
Line 1: Line 1:
{{stub}}
Constant with the value 1, representing a true value in macros.
{{SpecialVariable
 
|name=true
==Usage==
|version=1.8.0
|description=Constant representing a true (1) value in MTScript.


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


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


[[Category:Special Variable]]
[[Category:Special Variable]]
{{DISPLAYTITLE:false (Special Variable)}}

Revision as of 08:12, 21 June 2023

Constant with the value 1, representing a true value in macros.

Usage

true

Examples

[h: setMapVisible(true)]

This example is the same as

[h: setMapVisible(1)]

Notes

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

Related Pages