The if keyword indicates conditional execution of a block. The condition must evaluate to a boolean value.
if (condition)
{
<statements>
}
if (condition)
{
<statements>
}
else
{
<statements>
}
An if statement may have an optional else clause containing code that is executed if the condition is false.
Expressions containing boolean operands can contain only boolean operands.