true: Difference between revisions
Jump to navigation
Jump to search
(Create the page) |
No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Constant with the value 1, representing a true value in macros. | |||
==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)}} | |||
[[Category:Macro Function]] |
Latest revision as of 23:59, 4 July 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.