Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How do i check for a certen answer?

Hey, I trying to use a if statment to find out if the persen using my script enterd a certend word. Can anyone help me with how I have to approche this?

is my approche to it correct?

Best Answer

    Accepted Answer
    String perfect = "Hello";
    String answer = Console.ReadLine();
    If(answer = perfect){
           //do something 
          //do something 
Sign In or Register to comment.