summaryrefslogtreecommitdiff
path: root/modules/gdscript/tests/scripts/parser/features/multiline_if.gd
blob: 86152f4543c587cb74f15c3cf595df192b855880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
func test():
	# Line breaks are allowed within parentheses.
	if (
		1 == 1
		and 2 == 2 and
		3 == 3
	):
		pass

	# Alternatively, backslashes can be used.
	if 1 == 1 \
		and 2 == 2 and \
		3 == 3:
		pass