Why do these two things mean the same?

void OnUserInput(string input)
{
   print( input = "1");
}

and

void OnUserInput(string input)
{
    int intImput = int.Parse(input);
    print(input);
    if (intImput == 1||intImput ==2)
    {
        print("True");
    }
    else
    {
        print("False");
    }
}

???

Hi Ivan,

I’m sorry, I don’t really understand your question - could you elaborate a little?

I realized it?

Thanks!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms