return
The return Statement
Syntax
The return
statement is used to exit a processing section such as
authorize
. It behaves similarly to the break statement,
except that it is not limited to being used inside of a
foreach loop.
The return
statement is not strictly necessary. It is mainly used
to simplify the layout of unlang
policies. If the return
statement did not exist, then every if statement might need
to have a matching else statement.
Example
sql
if (&reply:Filter-Id == "hello") {
return
}
...