hasMacro: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
m (Added MacroFunction template and Metamacro Function category)
Line 1: Line 1:
==Function hasMacro==
{{MacroFunction
 
|name=hasMacro
|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]].


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: macroExists = hasMacro(label)
[h: macroExists = hasMacro(label)
</source>
</source>
}}
[[Category:Metamacro Function]]

Revision as of 04:10, 8 March 2009

hasMacro() Function

Returns 1 if a macro button with the specified label exists on the Current Token.

Usage

[h: macroExists = hasMacro(label)