nuc63 27 Posted January 25, 2012 Report Share Posted January 25, 2012 In ubot 3.5, i use the eval command to check if a box was checked in the ui checkbox feature. I am unsure how to do in ubot 4 any ideas? Basically i want to make sure a user checks a box before using bot. I use to use "if $var = True then else " Quote Link to post Share on other sites
Ira_Hayes 4 Posted January 25, 2012 Report Share Posted January 25, 2012 Same, use an if statement, then put a $comparison in there. The options are true and false. For example "if #ebay = true then" 1 Quote Link to post Share on other sites
nuc63 27 Posted January 25, 2012 Author Report Share Posted January 25, 2012 thanks for help. i want to check if 4 boxes are checked. the either only works with 2 variables. Current script i can get working is pasted below is there a easier way. ui check box("a", #a)ui check box("b", #ui check box("d", #d)ui check box("e", #e)if($either(#a, #) { then { set(#ab, "true", "Global") } else { }}if($either(#d, #e)) { then { set(#de, "true", "Global") } else { }}if($either(#ab, #de)) { then { load html("start script") } else { load html("end") }} Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.