If-Then An if-then statement is a common programming tool for decision making. For example, to check a password you would write:

IF the password is correct, THEN open the new window