setMaxLoopIterations: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{MacroFunction |name=setMaxLoopIterations |version=1.4.0 |description= Sets the max amount of loops (in {{roll|count}}, {{roll|foreach}}, {{roll|for}}, {{roll|while}}) that a...") |
No edit summary |
||
(5 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{MacroFunction | {{MacroFunction | ||
|name=setMaxLoopIterations | |name=setMaxLoopIterations | ||
|version=1.4.0 | |version=1.4.0.2 | ||
|description= | |description= | ||
Sets the max amount of loops (in {{roll|count}}, {{roll|foreach}}, {{roll|for}}, {{roll|while}}) that are allowed. The current allowed | Sets the max amount of loops (in {{roll|count}}, {{roll|foreach}}, {{roll|for}}, {{roll|while}}) that are allowed. The current allowed min is 10,000. Note that this settings lasts only for the current session. | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
setMaxLoopIterations(numLoops) | setMaxLoopIterations(numLoops) | ||
</ | </syntaxhighlight> | ||
Where | Where | ||
* ''numLoops'' is the new maximum allowed iterations, this value cannot be lower than 10,000 | * ''numLoops'' is the new maximum allowed iterations, this value cannot be lower than 10,000 | ||
|example= | |example= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: setMaxLoopIterations()] | [r: setMaxLoopIterations()] | ||
</ | </syntaxhighlight> | ||
|also= | |also= |
Latest revision as of 23:59, 14 March 2023
setMaxLoopIterations() Function
• Introduced in version 1.4.0.2
Sets the max amount of loops (in [count():], [foreach():], [for():], [while():]) that are allowed. The current allowed min is 10,000. Note that this settings lasts only for the current session.
Usage
setMaxLoopIterations(numLoops)
Where
- numLoops is the new maximum allowed iterations, this value cannot be lower than 10,000
Example
[r: setMaxLoopIterations()]