Loop

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
This command repeats the contained commands a specified number of times. The number of times the contained commands are looped are determined by the Number of Cycles field in the command.   
+
This command is a [[Flow Commands|Flow Command]]. This command repeats the contained commands a specified number of times. The number of times the contained commands are looped are determined by the Number of Cycles field in the command.   
  
 
== Example ==
 
== Example ==

Revision as of 16:24, 12 April 2013

This command is a Flow Command. This command repeats the contained commands a specified number of times. The number of times the contained commands are looped are determined by the Number of Cycles field in the command.

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.

File:Loop.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox