blob: ca29b5f5def2d7a011321a72e74da7b73f03fee9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
function test(a) {
switch (a) {
default: return "cool"
case "xxx": print("got zero"); break;
case "ciao": case "ciao2": return 123
case "hello": return 321
}
return 444
}
print(test("xxx"))
print(test("hello"))
print(test("ciao"))
print(test("ciao2"))
print(test(9))
|