setMaxLoopIterations: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
|version=1.4.0.2
|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 max is 10,000 and this is also the minimum. Note that this settings lasts only for the current session.  
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=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
setMaxLoopIterations(numLoops)
setMaxLoopIterations(numLoops)
</source>
</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=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[r: setMaxLoopIterations()]
[r: setMaxLoopIterations()]
</source>
</syntaxhighlight>


|also=
|also=

Latest revision as of 20:49, 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()]

See Also