Skip Navigation

Daily Godot Tip #24: Statements can be put across multiple lines using backslashes or parentheses

Putting a backslash after a part of the statement basically means ignore any newlines between this and the next characters so you can indent it however you want

7 comments
  • I tend to us the backslash syntax for longer if statements. One thing I do differently than documention mentions though is double tab the following lines in my if statements. Keeps it easier to read where it ends and where the actual code block begins.

7 comments