Yes it is possible
When you stop the inner loop, from inside the inner loop, just wire/pass an appropriate stop condition ( stop if true/ continue if true) to the conditional terminal of the outer loop
keep cascading this for all outer while loops
Hope this helps
Dev