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

Looping thru an array

$
0
0
#include <Array.au3> Dim $compname = @Computername Dim $RoomArray[4] =["E16", "E14", "E25", "W55"] $RoomNumb = StringLeft(@ComputerName, 3) $Index = _ArraySearch($RoomArray, Number($RoomNumb[1]))

There is what I have so far.  Basically, what I'm wanting to do is loop thru the array and compare the values vs. the $RoomNumb value. If it doesn't match then it will set off an MSI to run. I have the logic for it, just can't figure out how to get that logic to paper. I'm thinking a While loop, but can't figure out how to increment the index value thru the array.

 

 

Little help again, please?

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



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