isTrusted: Difference between revisions
Jump to navigation
Jump to search
(New page: ==Function isTrusted== Returns 1 if this is running as a trusted macro or 0 if it is not. ===Usage=== <source lang="mtmacro" line> [h: trusted = isTrusted()] </s...) |
No edit summary |
||
(8 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
= | {{MacroFunction | ||
|name=isTrusted | |||
|version=1.3b48 | |||
|description= | |||
Returns 1 if this is running as a [[Macros:TrustedMacros|trusted macro]] or 0 if it is not. | Returns 1 if this is running as a [[Macros:TrustedMacros|trusted macro]] or 0 if it is not. | ||
|usage= | |||
< | <syntaxhighlight lang="mtmacro" line> | ||
isTrusted() | |||
</ | </syntaxhighlight> | ||
= | |example= | ||
<syntaxhighlight lang="mtmacro" line> | |||
< | [r, if(isTrusted()): "I can run the trusted functions! yay!"] | ||
[r, if(isTrusted()): "I can run the trusted functions! yay!" | </syntaxhighlight> | ||
</ | }} | ||
[[Category:Metamacro 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!"]