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

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