Although conditions (Boolean expressions) are somewhat interesting, they are not very useful by themselves. They are one of the building blocks of a conditional statement.
A conditional statement has three parts: a condition, a then-block, and an else-block. The condition is a Boolean expression that evaluates to either true or false, depending on the state of variables, in general. The then-block is a block of code to execute if and only if the condition evaluates to true. The else-block is another block of code to execute if and only if the condition evaluates to false.
For example, the following code finds the maximum out of the two variables w and x and put the maximum in z:
The condition is the component between the reserved words if and then. Note that the reserved word if, the condition ((w < x) in this example) and the reserved word then must be on the same line in VBA.
The then-block is the block of code between the line starting with if and the line starting with else. The else-block is the block of code between else and end if.
If there is no code to execute if and only if the condition is false, you can leave the reserved word else and the else-block out completely. For example, the following code only updates z if and only if x is larger than z: