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

Test if 4 variables are equal

$
0
0

Hi all,

I'm just trying to figure out the best way to check if 4 variables are equal for error checking purposes.

I know I can test each of the combinations like this

if $var1 <> $var2 and $var1 <> $var3 and $var1 <> $var4 and $var2 <> $var3 and $var2 <> $var4 and $var3 <> $var4 then

but I am curious how programmers would format it to be more efficient.

 

Thank you


Viewing all articles
Browse latest Browse all 12506

Trending Articles



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