Approximate translation:
When doing continuous processing using For, we want to process when we meet the condition, and if we do not match the condition we want to skip to the next loop without processing. I made code using while and if statements and it did not work well. Please teach me.