Both
From UBot Studio
(Difference between revisions)
Line 1: | Line 1: | ||
This function is a [[Qualifier Functions|Qualifier Function]]. | This function is a [[Qualifier Functions|Qualifier Function]]. | ||
− | This function returns true if both conditions return true. In this case you are setting two conditions that must both return true in order to execute the commands inside the Then node. This command allows you to insert other qualifiers inside it. | + | |
+ | This function returns true if both conditions return true. In this case you are setting two conditions that must both return true in order to execute the commands inside the Then node. | ||
+ | |||
+ | This command allows you to insert other qualifiers inside it. | ||
Revision as of 16:01, 14 April 2013
This function is a Qualifier Function.
This function returns true if both conditions return true. In this case you are setting two conditions that must both return true in order to execute the commands inside the Then node.
This command allows you to insert other qualifiers inside it.
Example
navigate("google.com", "Wait") if($both($exists(<href="/files/ScriptReferences//TheMenus.pdf">), $exists(<innertext="Sample Scripts and Bot Templates">))) { then { } else { navigate("http://www.ubotstudio.com/resources", "Wait") } }
Running the script above will check the page to see if the two specified elements in the exists qualifier exists on the page.
If both items exists on the page, the script does nothing. If both elements do not exist on the page, then the script navigates to the specified url in the navigate command.