Dim X as string?

console.writeline("I love you")

x = console.readline()

     IF x = ("I love you too") Then

      console.writeline(" here's your 500 dollars")

      console.readline()

 Else

      console.writeline(" you will die")

      console.readline()

END IF

1 Answer

Relevance
  • EddieJ
    Lv 7
    1 month ago

    What is your question?  It worked for me, assuming it's VB.

    IF x = ("I love you too") Then

    You don't need the parens around the string, but it shouldn't hurt.

Still have questions? Get answers by asking now.