I expected if name =Restart-log and res was false it would write out to Restart-log only
or if not Restart-log and res was true would write out to all other names
I get it writes out to all names when true. I have to look at this more closely. I am sure it is simple.
will try - I have been able to see individual items by using notifyDevice[0] % notifyDevice[1]. I am sure it is incrementing some variable. if i could put that in it should work.
if(notifyDevice){
for (i = 0; i < 2; i++){
if(notifyDevice[i] != "Restart-log") log.debug notifyDevice[i]
returns -zDining-Kit- and Restart-log. But I can't get it to == "Restart-log"