godot/modules/gdscript/tests/scripts/parser/features/multiline_if.gd

15 lines
205 B
GDScript3
Raw Normal View History

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