I fixed it myself by making the if statements use parsed numbers...