There were some technical limitation with the while loop that we could not achieve to have an inner scope. Also there is no data that is being iterated in the while loop that needs to be accessed from inside the loop. Because of this difference the output also differs, the steps in the repeat loop are having its own scope and outputs its data in that scope while the while loop doesn’t create such a sub-scope.
I believe the limitation was with the javascript promise based actions, the client-side actions in the flow component in which we can’t use the new async
and await
syntax for browser compatibility.