### How to Write a Conditional Construction?

The conditional if construction contains the following elements:

• Keyword if
• A boolean expression (condition)
• Body of the conditional construction
• Optional: else clause
if (condition)
{
// body
}
else (condition)
{
// body
}


To make it easier we can use a code snippet for an if construction:

• if + [Tab] + [Tab]