I am trying to use the switch statement to move different values into one numeric label.
So I have two numeric labels, one of them is “height” and the other is “snubber” and both of them are double. I want the snubber to be 1 if I have height = 10, 2 if 20<height<=30, and 3 if height>=40.
In order to do that I am binding the data value of the snubber to an expression and in there I am using a switch statement to switch between different conditions. Based on the value of height, the data has to be shown on the snubber label, however, I am not able to do that and I am getting syntax errors. I cannot find a lot of information regarding scripting with Switch. I would appreciate any knowledge you could share with me.
I do have the code as well, but since I am sure that is 100% Incorrect I probably better not sharing it