I need help with the syntax of a switch statement. I have a variable that contains a calculated value. Based on that value I want something to happen.
between 0 and 1: x happens
between 1 and 2: y happens
etc.
I am having trouble coding the case for a range.
between 0 and 1: x happens
between 1 and 2: y happens
etc.
I am having trouble coding the case for a range.