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