Debian Codegraph @

doc/antora/modules/unlang/pages/condition/and.adoc

raw
1 = The && Operator
2
3 .Syntax
4 [source,unlang]
5 ----
6 (condition-1 && condition-2)
7 ----
8
9 The `&&` operator performs a short-circuit "and" evaluation of the
10 two conditions. This operator evaluates _condition-1_ and returns
11 `false` if _condition-1_ returns `false`. Only if _condition-1_
12 returns `true` is _condition-2_ evaluated and its result returned.
13
14 .Examples
15 [source,unlang]
16 ----
17 if (&User-Name && &EAP-Message) { ...
18 ----
19
20 // Copyright (C) 2020 Network RADIUS SAS. Licenced under CC-by-NC 4.0.
21 // Development of this documentation was sponsored by Network RADIUS SAS.