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