+ 1
What is the diffrent bitwen 'switch' anf 'if'
2 Antworten
+ 8
with switch you can check one variable for multiple values, if simply checks a boolean condition. you csn accomplish a switch behavior with multiple if's chaned to ifelses. But i recommend to use switch instead of multiple ifelses