hasMacro: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Macros:Functions:hasMacro moved to hasMacro: Moved out of Macros namespace)
m (Added version.)
Line 1: Line 1:
{{MacroFunction
{{MacroFunction
|name=hasMacro
|name=hasMacro
|version=1.3b48
|description=
|description=
Returns 1 if a [[macro button]] with the specified label exists on the [[Token:Current Token|Current Token]].
Returns 1 if a [[macro button]] with the specified label exists on the [[Token:Current Token|Current Token]].
Line 6: Line 7:
|usage=
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: macroExists = hasMacro(label)
hasMacro(label)
</source>
</source>
}}
}}
[[Category:Metamacro Function]]
[[Category:Metamacro Function]]

Revision as of 12:54, 10 March 2009

hasMacro() Function

Introduced in version 1.3b48
Returns 1 if a macro button with the specified label exists on the Current Token.

Usage

hasMacro(label)