Jump to content
UBot Underground

Recommended Posts

Just wanted to share a little tip.

 

I had a bot with 3 variables I wanted to check against each other (so that if a person didn't select at least one option, the bot would alert them and stop).

 

After looking at the options available ($both & $either) for comparing variables, neither seemed to easily fit what I wanted.

 

so, after some research here on the forum and messing with it - Here is the solution

 

Use IF AND

 

Drag your IF statement into your bot, and then add your variables and expectations.

 

For me, I wanted to make sure that all 3 variables were not false.

 

So,

 

IF

#var1 = $false AND #var2 = $false AND #var3 = $false

THEN

Alert - Select something

$stop script

ELSE

leave this blank - or not -

 

 

This is likely common knowledge to the well experienced uBot users, but it was new to me and is going to be very valuable to me as I continue my progress.

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