Debian Codegraph @

src/tests/keywords/if-skip

raw
1 # PRE: if
2 #
3 # Conditions which statically evaluate to "false"
4 # have their entire contents skipped on load.
5 #
6 # Conditions which statically evaluate to "true"
7 # have the following "else" sections skipped, too.
8 #
9 # i.e. we can reference things which don't exist,
10 # and they'll get ignored.
11 #
12 if (0) {
13 no-such-module
14 }
15
16 if (0) {
17 no-such-module
18 }
19 else {
20 ok
21 }
22
23 if (1) {
24 ok
25 }
26 else {
27 no-such-module
28 }
29
30 if (1) {
31 ok
32 }
33 elsif ("%{foo:bar}") { # no pass2
34 no-such-module
35 }
36 else {
37 no-such-module
38 }
39
40 update reply {
41 Filter-Id := "filter"
42 }