Hi
I'm iterating trough a list of objects using a repeat statement. If a specific criteria matches, I want to skip the code for the current object in the loop.
How do I achieve this? The "break" statement ends the whole repeat statement, I just want to ignore the rest of the code in the loop for one item and continue with the next item in the list.
In other languages, I can use the "continue" keyword. What's the magic word in Sage X3?
Example:
Local Integer TOTAL_ROWS, CURRENT_ROW
[L]TOTAL_ROWS = 10
[L]CURRENT_ROW = 0
Repeat
[L]CURRENT_ROW += 1
If([L]CURRENT_ROW = 5)
# To Do: Skip current row
Endif
Infbox num$([L]CURRENT_ROW)
Until [L]CURRENT_ROW = [L]TOTAL_ROWS
Thx & Regards
Benjamin