sktan7 12 Posted July 6, 2012 Report Share Posted July 6, 2012 Does uBot support the following: if ((a=1) or (b=2) or (c=3))do somethingelse do somethingelse Quote Link to post Share on other sites
ubotusold 28 Posted July 6, 2012 Report Share Posted July 6, 2012 set(#a, 0, "Global") set(#b, 0, "Global") set(#d, 0, "Global") if($either(#a = 1, $either(#b = 2, #d = 3))) { then { alert("then triggered") } else { alert("else triggered") } } By the way, for some reason this won't work: set(#c, 0, "Global") Seems #c as a variable is something special in Ubot as I kept getting an invalid parameter error. Quote Link to post Share on other sites
blumi40 222 Posted July 6, 2012 Report Share Posted July 6, 2012 set(#A, 0, "Global")set(#B, 0, "Global")set(#C, 0, "Global")if(#A = 0 OR #B = 0 OR #C = 0) { then { alert("Hello ") }} works fine for me 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.