Loop Action - Restart Loop Index

Hi everyone.

On Architect I’m using a “Loop Action” with a “Collect Input Action” and a “Switch Case Action” in order to creat an IVR Menu where the Client has three opportunities to choose a valid option. In the third time, the call exits the loop and the call disconnects. This solution works fine, however one of the options needs to restart the loop index.

I tried to use an “Update Action” in order to equal the loop index to zero, but when it enters the loop again, the index is equal to one.

Is there another way to restart the loop index? For instance “-1”?

Thank you in advance,

Best regards,
Ana Laia

The very last thing to happen in each iteration of the loop is incrementing the index variable. This happens after your update data step, which is why the index is 1 at the beginning of the next iteration of the loop.

Setting the index to -1 will make the index 0 at the beginning of the next iteration of the loop.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.