Jump to content
UBot Underground

checking if box is checked ubot4


Recommended Posts

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 "

Link to post
Share on other sites

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", #B)

ui check box("d", #d)

ui check box("e", #e)

if($either(#a, #B)) {

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")

}

}

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...