For this lecture I was following along but by the end of the video I was getting many errors and I don’t understand why.
My lines of code are:
void OnUserInput(string input)
if(input == “menu”)
Terminal.WriteLine(“Please choose a valid level”);
But I receive errors such as :
; expected, ‘else’ cannot start a statement, syntax ‘(’ expected, invalid expression term ‘else’ and finally syntax ‘)’ expected.
Any help would be greatly appreciated as I can’t progress without fixing this issue first.
Thanks in advance