Loop
From UBot Studio
(Difference between revisions)
(→Example) |
|||
(3 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | This command repeats the contained commands a specified number of times. | + | This command is a [[Flow Commands|Flow Command]]. This command repeats the contained commands a specified number of times. |
+ | |||
+ | '''Number of Cycles:''' determines the number of cycles the containing commands will be looped. | ||
== Example == | == Example == | ||
Line 10: | Line 12: | ||
</pre> | </pre> | ||
+ | |||
The script loops the process of incrementing the variable #number and adding each number to the list as an item. | The script loops the process of incrementing the variable #number and adding each number to the list as an item. | ||
− | [[File:loop. | + | |
+ | [[File:loop.jpg]] |
Latest revision as of 18:31, 16 September 2013
This command is a Flow Command. This command repeats the contained commands a specified number of times.
Number of Cycles: determines the number of cycles the containing commands will be looped.
[edit] Example
set(#number, 0, "Global") loop(10) { increment(#number) add item to list(%my numbers, #number, "Delete", "Global") }
The script loops the process of incrementing the variable #number and adding each number to the list as an item.