☰
Debian Codegraph
@
4.6.3+ds-2
/
/
modules
/
gdscript
/
tests
/
scripts
/
parser
/
features
/
match.gd
☽
☼
modules/gdscript/tests/scripts/parser/features/match.gd
code
plain
raw
Expat
2014-present, Godot Engine contributors; 2007-2014, Juan Linietsky, Ariel Manzur
debian/copyright
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