Else
From UBot Studio
(Difference between revisions)
(→Example) |
|||
| (One intermediate revision by one user not shown) | |||
| Line 19: | Line 19: | ||
</pre> | </pre> | ||
| − | |||
| − | [[File:else. | + | If the condition in the exists qualifier does not return true, the else command will run. |
| + | |||
| + | |||
| + | [[File:else.jpg]] | ||
Latest revision as of 19:56, 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 not 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 does not return true, the else command will run.
