While event handlers notify your script when something happens, you may want to check certain conditions yourself. For example, did the user enter a valid email address?
if (count==1) alert("The countdown has reached 1.");
This compares the variable count with the constant 1, and displays an alert message to the user if they are the same. You will use conditional statements like this in most of your scripts.
You'll learn more about conditionals in Hour 6, "Testing and Comparing Values."