Sidebar

How can I break out of a long running loop when I stop a channel?

+1 vote
39 views
asked Nov 21 by michael-h-5027 (14,610 points)

1 Answer

+1 vote
 
Best answer

for (var i=0 ; i < 10 ; i++) {
   if (qie.notInTestWindow() && qie.isChannelStopped(true)) {
      throw 'Aborting because channel is stopped!';
   }
   qie.info('instance ('+i+')');
   qie.pause(2000);
}

answered Nov 21 by michael-h-5027 (14,610 points)
selected Nov 21 by nathan-c-4426
...