5

Add a switch statement to be used in place of if else/elseif

Please add a switch statement that could be used in place of if-else -else if.  If you wish to check for a few conditions a switch statement would be easier to code and read instead of the multiple nested if-else if statements.

1 reply

A Switch or Case statement also eliminates a bunch of Else statements in the runlog. :)