Decrement

From UBot Studio
Revision as of 17:02, 23 September 2013 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Decrement is a Data Command.

This command will decrement (reduce) a variable set to a number by one.

Variable: The variable with the value that is going to be decremented.


Example


navigate("http://www.google.com/", "Wait")
set(#one, 5, "Global")
loop(5) {
    decrement(#one)
    type text(<name="q">, #one, "Standard")
}


The number 5 in the variable #one is decremented until it gets to 0.

Notice that in order to decrement the number in the variable, the variable is inserted into the decrement command.



Dec.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox