I was wondering if anyone could tell me if the structure of this statement is valid
if 130 < ch1_input < 170 then
xxx
endif
Or, do I need to break it up into 2 conditional statements?
I was wondering if anyone could tell me if the structure of this statement is valid
if 130 < ch1_input < 170 then
xxx
endif
Or, do I need to break it up into 2 conditional statements?
Your statement should throw an error. You could try the following code insteadI was wondering if anyone could tell me if the structure of this statement is valid
if 130 < ch1_input < 170 then
xxx
endif
Or, do I need to break it up into 2 conditional statements?
JersonCode:if (ch1_input > 130) and (ch1_input < 170) then xxx endif
Thanks for the response.
PBP did not throw an error, that is why I was wondering. I tried it in a simple program, but it resulted in unpredictable behavior.
Thanks again!
Bookmarks