if (condtion)
{
    statment;
}

and else if statement

if (condtion)
{
statment;
}
else if (condition)
{
statement;
}
else
{
statement;
}