If...Then...Else Statements. You can use If...Then...Else statements to execute a specific statement or block of statements depending on the Boolean value of a condition. The condition usually results from a comparison of two values, but it can be any expression that evaluates to a Boolean value (True or False).