how to skip a row in a table loop

  • 3 January 2021
  • 2 replies
  • 2 views

I have a table loop that run on rows (splited by ___)

and in each row I split the data by ||| to fields.

if in a specific field I dont have the right data I want to move on to the next row,

so what I did is to put an IF and if its not the correct answer dont do anything. my Q is there anything better to do than that (like in C# loop break or continue)

thank u


2 replies

Hi Daniel,

 

The AC called "Loop: Restart" is the equivalent to the "continue" behaviour in other languages. The AC called "Loop: Break" will exit the loop completely. These ACs will work with all loop types - Loop, Loop Table, Loop Items.

 

I've attached a simple screenshot to explain this. In the code below the variable contains the values a, b and c. When the code is run, a show message with "a" is shown followed by a message with "c". There is no message with "b".

 

I hope this helps,

 

Darren

thank u very much for the answer

Reply