Hard to Make Leap from Explanation of Operator to where it goes

I am also a beginner to C# entirely. This is my first language. I feel like there was a missing logical step in the instruction to add == to the print method. I don’t know where that is, but as a beginner:

  1. I had no idea where I should be making a change
  2. I didn’t know what that change should be
  3. the concept of why “string input” was put into the OnUserInput parameters was still unclear
  • How do you know what the input is?

My first guess was to try to write the code as follows:
void OnUserInput(string 1);
{
print(true);
}

which is obviously incorrect, but that’s where my mind went: When the user inputs a string value of 1 print true otherwise print false.

1 Like

Privacy & Terms