My if statement runs through as if the conditions have been met even when they haven\'t. I have tried moving bits of code about and even rewriting the if statement differently b
This is really bogus
if (bob == "no", "No", "NO", "nO")
You need to break it out with logical OR instead
if (bob == "no" || bob == "No" || bob == "NO" || bob == "nO")
As it stand, this if (bob == "no", "No", "NO", "nO") would be equivalent to if("nO") as the effect of the comma operator.
if("nO")