getAlwaysVisible: Difference between revisions
Jump to navigation
Jump to search
m (Conversion script moved page GetAlwaysVisible to getAlwaysVisible: Converting page titles to lowercase) |
m (Text replacement - "source>" to "syntaxhighlight>") |
||
Line 8: | Line 8: | ||
<source lang="mtmacro" line> | <source lang="mtmacro" line> | ||
getAlwaysVisible([id]) | getAlwaysVisible([id]) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
Line 18: | Line 18: | ||
The Always Visible setting for Dragon is currently set to: [r: getAlwaysVisible("Dragon")] | The Always Visible setting for Dragon is currently set to: [r: getAlwaysVisible("Dragon")] | ||
[h, token("Dragon"): isVisible = getAlwaysVisible()] | [h, token("Dragon"): isVisible = getAlwaysVisible()] | ||
</ | </syntaxhighlight> | ||
}} | }} | ||
[[Category:VBL Function]] | [[Category:VBL Function]] |
Revision as of 17:31, 14 March 2023
getAlwaysVisible() Function
• Introduced in version 1.4.2.0
Returns the value of the corresponding setting for the token. Always Visible is a VBL setting which can be found in the Edit... menu of the token under the VBL tab.
Usage
<source lang="mtmacro" line> getAlwaysVisible([id]) </syntaxhighlight>
Parameters
value
- The value of the setting to set,true
(1
) orfalse
(0
).id
- OPTIONAL: The tokenid
of the token for which you want to set this setting, defaults to the Current Token.Note: This parameter can only be used in a Trusted Macro.
Example
<source lang="mtmacro" line>
The Always Visible setting for Dragon is currently set to: [r: getAlwaysVisible("Dragon")] [h, token("Dragon"): isVisible = getAlwaysVisible()]
</syntaxhighlight>