UI check box
From UBot Studio
(Difference between revisions)
(→Example) |
|||
Line 23: | Line 23: | ||
− | [[File: | + | [[File:uicheckbox.png]] |
Revision as of 20:53, 30 December 2012
This command is a UI Command. This command creates a checkbox in the UI portion at the top of the browser.
Example
Checking the checkbox sets the corresponding variable to "true". Leaving the checkbox unchecked sets it's corresponding variable to "false".
ui check box("Visit Google?", #checkbox) if($comparison(#checkbox, "=", "true")) { then { navigate("google.com", "Wait") } else { navigate("bing.com", "Wait") } }
Running the script with the check box checked will navigate the browser to google.
If the checkbox is not checked, the script will navigate to bing.