Track_Shovel@slrpnk.net to memes@lemmy.worldEnglish · 7 days agoOverflowslrpnk.netexternal-linkmessage-square24fedilinkarrow-up1239arrow-down18
arrow-up1231arrow-down1external-linkOverflowslrpnk.netTrack_Shovel@slrpnk.net to memes@lemmy.worldEnglish · 7 days agomessage-square24fedilink
minus-squareInFerNo@lemmy.mllinkfedilinkarrow-up6·7 days agoIt’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.
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.