Increment
From UBot Studio
(Difference between revisions)
(→Example) |
(→Example) |
||
Line 19: | Line 19: | ||
The script above will create a variable, set it to 0, and then increment the variable by one by typing the numbers into the google search field. | The script above will create a variable, set it to 0, and then increment the variable by one by typing the numbers into the google search field. | ||
Notice that the variable has been inserted into the increment command. | Notice that the variable has been inserted into the increment command. | ||
+ | |||
+ | |||
[[File:increment.png]] | [[File:increment.png]] |
Revision as of 17:58, 22 March 2013
Increment is a Data Command.
This command will increment a variable set to a number by one.
Example
navigate("http://www.google.com/", "Wait") set(#one, 0, "Global") loop(5) { increment(#one) type text(<name="q">, #one, "Standard") }
The script above will create a variable, set it to 0, and then increment the variable by one by typing the numbers into the google search field.
Notice that the variable has been inserted into the increment command.