isExternalMacroAccessAllowed: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
isExternalMacroAccessAllowed() | isExternalMacroAccessAllowed() | ||
</ | </syntaxhighlight> | ||
|examples= | |examples= | ||
'''1. Test to see if the current client can access external resources from macros.''' | '''1. Test to see if the current client can access external resources from macros.''' | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
This client has external access [r,if(isExternalMacroAccessAllowed()): "Enabled"; "Disabled"] | This client has external access [r,if(isExternalMacroAccessAllowed()): "Enabled"; "Disabled"] | ||
</ | </syntaxhighlight> | ||
|changes= | |changes= | ||
}} | }} | ||
[[Category:Permission Function]] | [[Category:Permission Function]] |
Revision as of 20:21, 15 March 2023
isExternalMacroAccessAllowed() Function
• Introduced in version 1.5.0
Returns
true
(1
) if the client is configured to allow external macro access (see Allow External Macro Access in MapTool Preferences). When enabled, this allows the use of other macro functions such as exportData().Usage
isExternalMacroAccessAllowed()
Examples
1. Test to see if the current client can access external resources from macros.
This client has external access [r,if(isExternalMacroAccessAllowed()): "Enabled"; "Disabled"]