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

  • Mikelius@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    15 hours ago

    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.