summaryrefslogtreecommitdiffstats
path: root/src/tests/keywords/if-elsif
blob: c0a41ed669839281c1885c77d56b14d5ff303cf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# PRE: if if-else
#
#  Matching "if" conditions
#
if (User-Name != "bob") {
	update reply {
		Filter-Id := "not bob"
	}
}
elsif (User-Name == "bob") {
	update reply {
		Filter-Id := "filter"
	}
}
else {
	update reply {
		Filter-Id := "last else"
	}
}