summaryrefslogtreecommitdiffstats
path: root/src/tests/keywords/switch-value-error
blob: 18db9e1f339d7b766a29257105bd1da814c9c3ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
#  PRE: switch
#
switch &Service-Type {
	case "%{expr: 1 + 2}" {
		update reply {
			Filter-Id := "3"
		}
	}

	case Login-User {
		update reply {
			Filter-Id := "Login-User"
		}
	}

	case No-Such-Value {	# ERROR
		update reply {
			Filter-Id := "FAILED"
		}
	}

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

}