Then

From UBot Studio
(Difference between revisions)
Jump to: navigation, search
(Created page with "This command is used inside an if command to specify which commands should run if the condition is true. == Example == <pre> if($exists(<innertext="Video Training in Ten Mi...")

Revision as of 19:15, 29 December 2012

This command is used inside an if command to specify which commands should run if the condition is 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 is correct, the then command will run to click the specified link.

File:Then.png

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox