# While (NOR?)

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

##### Share on other sites

`while Not \$hello1 And Not \$hello2 And Not \$hello3`

Live for the present,
Dream of the future,
Learn from the past.

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

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

##### Share on other sites

You could also do this:

`While Not(\$hello1 = \$blank Or \$hello2 = \$blank Or \$hello3 = \$blank)`

.

eMyvnE

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

"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

## Create an account

Register a new account