1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
# # User-Name is "bob", and a switch statement # with no "default" should not crash the server. # switch &User-Name { case "doug" { update reply { Filter-Id := "doug" } } } if (&reply:Filter-Id) { update reply { Filter-Id := "fail 1" } } else { update reply { Filter-Id := "filter" } }