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