@[email protected] to Lemmy [email protected]English • 2 years agoI wishi.imgur.comimagemessage-square171fedilinkarrow-up1930
arrow-up1930imageI wishi.imgur.com@[email protected] to Lemmy [email protected]English • 2 years agomessage-square171fedilink
minus-square@[email protected]linkfedilinkEnglish1•2 years agoIt will check all of the if statements instead of stopping at the first match.
minus-square@[email protected]linkfedilink1•2 years agoYeah gotta store the return value in a variable!
minus-square@[email protected]linkfedilinkEnglish2•2 years agoMy bad, I looked over the returns. If you return something there wouldn’t be much difference between both.
It will check all of the if statements instead of stopping at the first match.
Each clause already returns
Yeah gotta store the return value in a variable!
My bad, I looked over the returns. If you return something there wouldn’t be much difference between both.