summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/parser/features/match.gd
blob: 59b5ba242608caa08fa7cee3eea8ad447ec211fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
func test():
	var i = "Hello"
	match i:
		"Hello":
			print("hello")
		"Good bye":
			print("bye")
		_:
			print("default")

	var j = 25
	match j:
		26:
			print("This won't match")
		_:
			print("This will match")