Here is the link, but I think he got confused with a switch statement while running an if then statement.
mixing switch code with the if statement FCC simple answer