Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Select with multiple Variables

$
0
0

Hello

I got a question. Is there any other way to do Select function:

 

We got 5 different vars: $1=true or false, $2=true or false and $3=true or fallse

And now the select function

Select Case $1=true and $2=true and $3=true  ..do something.. Case $1=false and $2=false and $3=false  ..do something..

So with three variables we need to write 8 different combinations. Thats not really hard, but when we got 8 different variables we need to make 256 Cases. Is there any easier way to do such a thing?

Like for example:

Case $1=true and ($2=True or False)

 

Any ideas?


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>