Hello
I want to see the counter of the delay so , I will know it start working
so in the script environment I will see the counter grow from 1 to 10 ;
how do I do this ?
:global Counter 0;
if ($Counter != 15) do={:delay 1;:set Counter ($Counter+1)} else={:log warning "Done!"}
but he won’t count ,
what am i doing wrong?
Not sure if I understand you correctly but is this what you want?
:global Counter 0;
while ($Counter < 15) do={:delay 1;:set Counter ($Counter+1)}
:log warning "Done!"
so I did right?
all I didn’t have to do is to write what goes after it get to 15 , in “else”?
Thanks ,
Umm, if…then…else is not a loop. If you want a loop use while…do or for…do.