I've been trying to get the switch statement to work without having to be nested, but it won't work because it's linked to the if statement I've made.

Does anybody know how i can move the boardType switch statement outside of the duration switch statement with the if statement still working? Thank you

```
int duration = input.nextInt();

switch (duration) {
    default -> System.out.println("You have not entered a valid number of nights.");
    case 2, 7, 14 -> {
        System.out.print("How many guests are in your party? ");
        int guestAmount = input.nextInt();

        if (guestAmount >= 1 && guestAmount <= 10) {
            System.out.print("What type of board would you like (full, half, or self-catering)? ");
            String boardType = input.next();

            switch (boardType) {
                case "full", "half", "self-catering" ->
                        System.out.println("Valid details entered - booking may proceed");
                default -> System.out.println("Sorry, we do not cater that type of board.");
            }
        } else {
            System.out.println("Sorry, you are only allowed 1 to 10 guests.");

```