Definition and Usage
Next loop command skips the current iteration of a loop and proceeds directly to the next iteration. This command is useful when you want to bypass the remaining actions in the current loop iteration based on certain conditions, without exiting the loop entirely.
Parameter Values
Input parameters
This command does not require any input parameters.
Variables produced
This action doesn't produce any variables.
Using Variables in Conditions
While this command doesn't require parameters, it is typically used within conditional structures. You can use variables in the condition that determines whether to execute the Next loop command:
Place this command inside an If condition block to skip iterations based on specific criteria
Variables used in the conditional statement should be properly defined before the loop starts
Notes
This command must be placed inside a loop structure to function properly
When executed, all remaining actions in the current iteration will be skipped
The loop will continue with the next iteration if available, or exit if all iterations are complete
Using Next loop without a surrounding loop structure will result in an error
This command is useful for filtering out unwanted items in a collection or skipping processing when certain conditions are met
Example
This workflow will take each row from the "Table1
" and save it as a separate variable called "loopItem0
". It will then print all items contained in the "Item
" column, except for those that have the text "BBB
", which will be skipped over during this process. At the end of the loop, all other items will be displayed.
β