• InFerNo@lemmy.ml
    link
    fedilink
    arrow-up
    5
    ·
    4 days ago

    It’s a shorter way to write if else if else if else if else, which keeps indenting and harder to read if there are lots of cases, also because each if statement checks the same variable for different values.