This statement allows you to optionally execute one of two sets of statements dependent on the truth of an expression.
The format of the statement is:
if (<expression>) { <statements...> }else{ <statements...> }You must use "{" and "}" to indicate the statements in both the "if" and "else" parts of the statement.
For example:
if (transaction.complete()) { transaction.commit(); }else{ transaction.continue(); }