The if Statement
Syntax
if (condition) {
[ statements ]
}
Description
The if
statement evaluates a condition. When the
condition evaluates to true
, the statements within the subsection
are executed. When the condition evaluates to false
, those
statements are skipped.
Example
if (&User-Name == "bob") {
reject
}