Either
From UBot Studio
(Difference between revisions)
(Created page with "This function is a Qualifier Function. This function returns true if either of the two conditions are true. This command allows you to insert other qua...") |
|||
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 either of the two conditions are true. This command allows you to insert other qualifiers inside it. | This function returns true if either of the two conditions are true. This command allows you to insert other qualifiers inside it. | ||
+ | |||
+ | '''First Condition:''' The first condition to meet in the either qualifier. | ||
+ | |||
+ | '''Second Condition:''' The second condition to meet in the either qualifier. | ||
Revision as of 19:47, 25 April 2013
This function is a Qualifier Function. This function returns true if either of the two conditions are true. This command allows you to insert other qualifiers inside it.
First Condition: The first condition to meet in the either qualifier.
Second Condition: The second condition to meet in the either qualifier.
Example
navigate("google.com", "Wait") if($either($exists(<innertext="FEATURES">), $exists(<innertext="Video Training in Ten Minutes or Less!">))) { then { } else { navigate("http://www.ubotstudio.com/resources", "Wait") } }
Running the script above will check the page to see if the either of the two specified elements in the exists qualifier exists on the page.
If either one of those 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.