Debian Codegraph @

modules/gdscript/tests/scripts/parser/features/match.gd

raw
1 func test():
2 var i = "Hello"
3 match i:
4 "Hello":
5 print("hello")
6 "Good bye":
7 print("bye")
8 _:
9 print("default")
10
11 var j = 25
12 match j:
13 26:
14 print("This won't match")
15 _:
16 print("This will match")
17
18 match 0:
19 pass