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