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