Behavior of break when used in a loop inside a switch

ereinion

Member
Say I have some code which looks like this:

Code:
switch (last_choice()) {
    case 1000:
            choices = available_choice_options();
            foreach key in choices {
                if (choices[key].contains_text("Whatever")) {
                    run_choice(key);
                    break;
                }
            }
    break;
}

Will the "break" inside the foreach just break out of the loop, or will it break out of the switch statement?
 
Top