False
From UBot Studio
(Difference between revisions)
(Created page with "This command is a Qualifier Function. This command returns false. == Example == <pre> ui check box("Navigate to Google?", #checkhere) if($comparison(...") |
|||
(One intermediate revision by one user not shown) | |||
Line 8: | Line 8: | ||
if($comparison(#checkhere, "=", $false)) { | if($comparison(#checkhere, "=", $false)) { | ||
then { | then { | ||
− | navigate(" | + | navigate("bing.com", "Wait") |
} | } | ||
else { | else { | ||
+ | navigate("google.com", "Wait") | ||
} | } | ||
} | } | ||
</pre> | </pre> | ||
+ | |||
The script checks the variable assigned to the UI Check box to see if it returns false using the false qualifier in the [[Comparison|comparison]] qualifier. | The script checks the variable assigned to the UI Check box to see if it returns false using the false qualifier in the [[Comparison|comparison]] qualifier. | ||
Line 21: | Line 23: | ||
Once set to false, the comparison qualifier evaluates the variable and matches it against the false qualifier. If the two values match, the script navigates to google.com. | Once set to false, the comparison qualifier evaluates the variable and matches it against the false qualifier. If the two values match, the script navigates to google.com. | ||
− | [[File:false. | + | |
+ | [[File:false.jpg]] |
Latest revision as of 18:37, 29 September 2013
This command is a Qualifier Function. This command returns false.
[edit] Example
ui check box("Navigate to Google?", #checkhere) if($comparison(#checkhere, "=", $false)) { then { navigate("bing.com", "Wait") } else { navigate("google.com", "Wait") } }
The script checks the variable assigned to the UI Check box to see if it returns false using the false qualifier in the comparison qualifier.
The variable for the UI check box returns false when the checkbox is left unchecked. Once set to false, the comparison qualifier evaluates the variable and matches it against the false qualifier. If the two values match, the script navigates to google.com.