how to Stop the current statement and proceed to the next one in do while ? thanks very mach
Could you please elaborate?
For example, the do while have to loop 10 times, in the fourth loop I want to skip to the fifth execution and not execute the statement after the fourth
You could write an if condition within the do while loop.
1 Like
Hello @yifan
If you want only skip fourth iteration then continue with you should use continue statement
If you want skip from the loop then use break statement
Thanks
1 Like