OUR SITES NetworkRADIUS FreeRADIUS

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.

An if statement can optionally be followed by an else or an elsif statement.

Example
if (&User-Name == "bob") {
    reject
}