in reply to an odd if then statement

Well "40+15" looks alot like a string to me.... and you are using "==" which is for comparing numbers. You might want to check out the "eq" statement.
if ("word1" == "word2") { print "this is always true"; } else { print "We will never get here."; }