Jump to content

While (NOR?)


kw_rock
 Share

Recommended Posts

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 by kw_rock
Link to comment
Share on other sites

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

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?

:)

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

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 :o

Link to comment
Share on other sites

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 :D

"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

:o

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...