Jump to content
UBot Underground

[ASK] How to check if checkbox is checked or not


Recommended Posts

You don't really need to. If you drag in the checkbox and choose "checked", it won't uncheck it if it is already checked.

 

John

Link to post
Share on other sites

But that is not what i meant. I want to know the status of a checkbox. Is it already checked or unchecked. If it is already checked then bot will write its status to OK and if it is unchecked then bot will write its status to FAIL

 

Please help

Link to post
Share on other sites

Like this?

 

ui check box("Checkbox", #checkbox)

ui stat monitor("Checked?", #checkbox)

 

or this?

 

ui check box("Checkbox", #checkbox)

ui stat monitor("Checked?", #status)

if($comparison(#checkbox, "=", "true")) {

then {

set(#status, "OK", "Global")

}

else {

set(#status, "FAIL", "Global")

}

}

 

 

 

http://ubotstudio.com/forum/public/style_emoticons/default/huh.gif

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...