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?