Brutal 164 Posted March 18, 2014 Report Share Posted March 18, 2014 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 = $falseTHENAlert - Select something$stop scriptELSEleave 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. Quote Link to post Share on other sites
the_way 52 Posted March 18, 2014 Report Share Posted March 18, 2014 Well done, looks good, I would have used ELSE IF combined there, and tied up every combination. Quote Link to post Share on other sites
vonnch 1 Posted March 23, 2014 Report Share Posted March 23, 2014 Thanks Software! I think this one is helpful for new guys, works like a good foundation. Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted March 23, 2014 Report Share Posted March 23, 2014 you can use OR as well 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.