setMaxLoopIterations

From RPTools Wiki
Revision as of 08:15, 20 July 2016 by Wolph42 (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

setMaxLoopIterations() Function

Introduced in version 1.4.0
Sets the max amount of loops (in [count():], [foreach():], [for():], [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.

Usage

setMaxLoopIterations(numLoops)

Where

  • numLoops is the new maximum allowed iterations, this value cannot be lower than 10,000

Example

[r: setMaxLoopIterations()]

See Also