isTrusted: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page IsTrusted to isTrusted: Converting page titles to lowercase)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
isTrusted()
isTrusted()
</source>
</syntaxhighlight>


|example=
|example=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[r, if(isTrusted()): "I can run the trusted functions! yay!"]
[r, if(isTrusted()): "I can run the trusted functions! yay!"]
</source>
</syntaxhighlight>
}}
}}
[[Category:Metamacro Function]]
[[Category:Metamacro Function]]
[[Category:Permission Function]]
[[Category:Permission Function]]

Latest revision as of 23:59, 15 March 2023

isTrusted() Function

Introduced in version 1.3b48
Returns 1 if this is running as a trusted macro or 0 if it is not.

Usage

isTrusted()

Example

[r, if(isTrusted()): "I can run the trusted functions! yay!"]