Then
From UBot Studio
(Difference between revisions)
(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...") |
|||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | This command is used inside an if command to specify which commands should run if | + | This command is a [[Flow Commands|Flow Command]]. This command is used inside an if command to specify which commands should run if |
the condition is true. | the condition is true. | ||
Line 17: | Line 17: | ||
</pre> | </pre> | ||
+ | |||
If the condition in the exists qualifier is correct, the then command will run to click the specified link. | If the condition in the exists qualifier is correct, the then command will run to click the specified link. | ||
− | [[File:then. | + | |
+ | [[File:then.jpg]] |
Latest revision as of 19:53, 16 September 2013
This command is a Flow Command. This command is used inside an if command to specify which commands should run if the condition is true.
[edit] 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.