Question
Trouble with IF
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?
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?