Dataflow dictates that both while loops must stop in order to get out of the current case. Of course now you have to ask yourself why you even need two while loops. Can't you combine the two into one loop? Do they need to run a different rates?
Anyway, you would set both loops to "stop if true", then use a logical OR of the two conditions in each loop (probably one condition directly and the condition from the other loop via a local variable).
In any case, you cannot go directly from one case to the other (this is not a sequence structure!). You must e.g. place the desired case condition in a shift register so it is available in the next iteration.
Maybe you could attach a simple version of your code. There might be a better solution.