ncsa/qdl

continue() inside an if[] does not afect outside scope

Closed this issue · 0 comments

Having a continue() call in a loop inside a conditional should continue the loop. The scope was ending at the conditional:

 key_set := {'a','b','c','d'};
      while[k∈key_set]
      do[
         if[k=='b'][continue();];
         if[k=='b']
         then[ok:=false;]
         else[i++;];
      ];

I.e. in this code, ok should be set false. Instead, i was incrementing.