Alert for the if statement added with comments.