while (roll option): Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) (Redirect pending split of article.) |
Verisimilar (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
{{stub}} | |||
===WHILE Option=== | |||
'''Introduced''': Version 1.3.b46 | |||
Repeatedly executes a statement until a condition becomes false. | |||
====Usage==== | |||
<source lang="mtmacro" line> | |||
[WHILE(condition): body] | |||
[WHILE(condition, separator): body] | |||
</source> | |||
====Example==== | |||
<source lang="mtmacro" line> | |||
[h:num=10] | |||
[WHILE(num>=0): num = num-1] | |||
</source> | |||
Outputs ''9,8,7,6,5,4,3,2,1'' | |||
[[Category:Roll Option]] | [[Category:Roll Option]] | ||
[[Category:Looping Roll Option]] | [[Category:Looping Roll Option]] |
Revision as of 04:14, 5 April 2009
This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.
WHILE Option
Introduced: Version 1.3.b46
Repeatedly executes a statement until a condition becomes false.
Usage
[WHILE(condition): body]
[WHILE(condition, separator): body]
Example
[h:num=10]
[WHILE(num>=0): num = num-1]
Outputs 9,8,7,6,5,4,3,2,1