Else

From UBot Studio
Revision as of 19:31, 29 December 2012 by LillyT (Talk | contribs)

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

This command is used inside an if command to specify which commands should run if the condition is not true.

Example


if($exists(<innertext="Video Training in Ten Minutes or Less!">)) {
    then {
        click(<innertext=" Video Training in Ten Minutes or Less!
">, "Left Click", "No")
    }
    else {
        navigate("http://www.ubotstudio.com/resources", "Wait")
        click(<innertext=" Video Training in Ten Minutes or Less!
">, "Left Click", "No")
    }
}

If the condition in the exists qualifier does not return true, the else command will run.

File:Else.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox