6 Replies Latest reply on Dec 22, 2008 5:17 PM by zerops

    Trouble with IF

    zerops
      Hi,

      I am having trouble with the 'if' statement. Whenever I try to use 'if' for input text it doesn't work. EX. I make an input box and give it a var name of userInput. then i'll code:

      if (userInput == 350){
      output = "You just entered three fifty!";
      } else {
      output = "Cool";
      }

      but it won't work. what am i doing wrong?