summaryrefslogtreecommitdiffstats
path: root/src/tests/keywords/switch
blob: f64aeaf5abe65ad26c511dc480a6432b94f5b63e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
switch &User-Name {
	case "bob" {
		update reply {
			Filter-Id := "filter"
		}
	}

	case "doug" {
		update reply {
			Filter-Id := "doug"
		}
	}

	case {
		update reply {
			Filter-Id := "default"
		}
	}
}