kw_rock Posted January 12, 2009 Share Posted January 12, 2009 (edited) Ok... we have 3 variables $hello1 $hello2 $hello3 We want use a function that will use a while our function is NOT equal to $hello1, $hello2, or $hello3 So my ideal idea would be... while (blank) NOT-EQUAL $hello1 NOR $hello2 NOR $hello3 Sleep(1000) WEnd What could I do to get this same effect? Because NOR doesn't work. Thanks Edited January 12, 2009 by kw_rock Link to comment Share on other sites More sharing options...
Developers Jos Posted January 12, 2009 Developers Share Posted January 12, 2009 while Not $hello1 And Not $hello2 And Not $hello3 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 12, 2009 Share Posted January 12, 2009 Ok... we have 3 variables$hello1$hello2$hello3We want use a function that will use a while our function is NOT equal to $hello1, $hello2, or $hello3So my ideal idea would be...while (blank) NOT-EQUAL $hello1 NOR $hello2 NOR $hello3 Sleep(1000)WEndWhat could I do to get this same effect? Because NOR doesn't work.ThanksWhat is "our function"?What is "(blank)"?What do you want those three variables compared to?What Jos posted will test all three compared to Boolean FALSE. Are you meaning to compare those three to a fourth value from somewhere? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
kw_rock Posted January 12, 2009 Author Share Posted January 12, 2009 What is "our function"?What is "(blank)"?What do you want those three variables compared to?What Jos posted will test all three compared to Boolean FALSE. Are you meaning to compare those three to a fourth value from somewhere? Blank is a memory read function. And yes, while will be sleeping until (blank) is equal to one of those three variables. Sorry for not being descriptive enough Link to comment Share on other sites More sharing options...
trancexx Posted January 12, 2009 Share Posted January 12, 2009 You could also do this: While Not($hello1 = $blank Or $hello2 = $blank Or $hello3 = $blank) ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 12, 2009 Share Posted January 12, 2009 Blank is a memory read function. And yes, while will be sleeping until (blank) is equal to one of those three variables. Sorry for not being descriptive enough "If you can't say what you mean, you will never mean what you say." Deborah Kerr as Anna Leonowens, in "The King and I" The easiest syntax to compare to multiple variables is: Switch _YourMemFunc() Case $hello1, $hello2, $hello3 _EqualToOneOfThem() EndSwitch Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now