Hacker.cs switch v if

after putting in the line of code
bool isValidNumber = (input == “1” || input == “3”);

    if (isValidNumber)
    {level = int.Parse(input); }

i ran into multiple errors with the ShowMainMenu and currentScreen (Ambiguity between ‘Hacker.currentScreen’ and ‘Hacker.currentScreen’ same for the ShowMainMenu

Hi pelfri,

Welcome to our community! :slight_smile:

Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture? Maybe there is a variable declared twice in the code block the error message is referring to.

Privacy & Terms