Just having a little fun with my if statements

void OnUserInput(string input)
    {
        if (input == "Menu")
        {
            ShowMainMenu();
        }

        else if (input == "?")
        {
            Terminal.WriteLine("Deploying 1000 nuclear missiles to your house!");
        }

        else if (input == "!")
        {
            Terminal.WriteLine("DON'T SHOUT AT ME!");
        }

        else
        {
            Terminal.WriteLine("Please select a level from 1, 2 or 3");
        }
    }
1 Like

Awesome job

1 Like

Thank you Kevin, feeling brave enough to hit “?” :joy:

Privacy & Terms