Both

From UBot Studio
Revision as of 18:43, 29 September 2013 by LillyT (Talk | contribs)

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

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.

First Condition: The first condition to meet in the both qualifier.

Second Condition: The second condition to meet in the both qualifier.


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.


Both.jpg

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox