| |||
| Home > RealView Debugger Keywords > Alphabetical keyword reference > if | |||
The simplest form of a macro conditional statement.
if (expression) /* If this expression is True */
{
statement; /* execute this statement */
[statement;]... /* additional statements */
}
The if statement is the simplest form of a macro
conditional statement. It is always followed by an expression enclosed
in parentheses. If the expression evaluates to zero, that is False,
the statement following the expression is bypassed. If the expression evaluates
to a value other than zero, that is True, the statement following
the expression is executed. If you have more than one statement
in the if statement these must be enclosed in curly
braces ({}).