Alert for question for if statement added with comments. Tests done and functioning.