Track_Shovel@slrpnk.net to memes@lemmy.worldEnglish · 15 days agoOverflowslrpnk.netexternal-linkmessage-square20fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkOverflowslrpnk.netTrack_Shovel@slrpnk.net to memes@lemmy.worldEnglish · 15 days agomessage-square20fedilink
minus-squareJusticeForPorygon@lemmy.worldlinkfedilinkarrow-up0·15 days agoMe who still doesn’t understand switch
minus-squareInFerNo@lemmy.mllinkfedilinkarrow-up0·15 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.
Me who still doesn’t understand switch
Turns on and off?
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.