Anything Else? Loop action
Use this action to make your process repeat a series of actions until it meets certain criteria before it goes on to the next action in your design. With this action, the caller determines when the loop continues. Looping continues until the flow no longer receives an affirmative reply from the caller, which indicates that no further action is necessary. You can create flow logic with this action in several ways, including:
- Loop through items in a collection
Loop through items in a collection applies to the actions inside the loop to each item of a collection of variables. For example, the actions inside the loop might add 2 and then multiply by 3. If you looped through a collection of five integers, then the loop would add 2 to the first integer, multiply the sum by 3, and put the product back into the first integer's slot in the collection. The loop would do the same actions on the second integer, then the third, fourth, and fifth. When it finished with the last item in the collection, the loop would "exit" and your process would move forward to the next action in your process design.
- Loop until a fixed count is reached
Loop until a fixed count is reached applies the actions inside the loop for a number of times that you specify. For example, if you specify 10, then the loop will run 10 times before moving forward to the next action in your process design.
- Loop while a condition is true
Loop while a condition is true applies the actions inside the loop as long as a certain condition is true, such as an integer value being greater than zero. You use the Expression Editor dialog box to construct the condition.
|Name||Add a descriptive label for the action.|
|Current Index Data Name||Use to track the current loop count, starting at 0 for the first loop and then by increments by 1 each time.|
Here, ask recipients what they would like to do. For example, “Can I help you with anything else?”
For a no input invalid response, add a phrase to play back to the recipient. For example, “Say yes if you want to proceed, or say no if you do not want to proceed.”
For a no match invalid response, add a phrase to play back to the recipient. For example, “Please say yes or no. Do you want to proceed?”