JS Array Test Index Reset

PHOTO EMBED

Thu Jan 18 2024 19:07:29 GMT+0000 (Coordinated Universal Time)

Saved by @montezh2001

if (instance.vars.index == 2) {
    instance.vars.index = 0} else {
    instance.vars.index +=1
   }
    
logInfo ("Counter " + instance.vars.index); 
content_copyCOPY