I can't figure out how to get my if else statement to work the way I want it to. I have this-
if ($Name = "Test") {
print "$Name";
} else {
print "ERROR";
}
I chopped a ton of coding out to make it simpler. When I submit the form which gets those results, EVERY name I type in is counted as TRUE and prints out "Test". The only time it uses the "else" is when I type in a "0". This is probably a very simple question, I hope it is, I just started to learn this lang.
Thanks for the help.