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