Prefered way to exit out a for loop? Goto? Break? Jump? Other comammand

If I have a for loop running and a condition is meet what command should I use to jump/goto/break out of a loop to enter another?

What's the preferred command? GoTo? Break? Jump Other command?

For loop is lighting LEDs from 2 to 40.
If a push button is pressed when LED 22 is HIGH goto/break/jump to another for loopB.

If button press when LED NOT ! when LED 22 high goto/break/jump to another for loopC.

https://www.arduino.cc/reference/en/language/structure/control-structure/break/

Doug101:
If I have a for loop running and a condition is meet what command should I use to jump/goto/break out of a loop to enter another?

What's the preferred command? GoTo? Break? Jump Other command?

For loop is lighting LEDs from 2 to 40.
If a push button is pressed when LED 22 is HIGH goto/break/jump to another for loopB.

If button press when LED NOT ! when LED 22 high goto/break/jump to another for loopC.

I read about break and goto before postiing. Not understanding how break would work in this situation.

If break, breaks out of the loop how do it know to go to loopB or loopC?

Break; just exits the loop you're in, and continues the rest of the code.

Which 'other' for loop will run depends on the rest of the code.
Maybe you shouldn't split your project across several threads.
Cross-posting is always a bad idea.
Leo..