Range check
Ensure that values don't exceed a specific range. For example, when you want to check that the temperature is between 97.8°F to 99.1°F.
In this example, we are looking for temperatures outside of a certain range when respiration is abnormal.
var upper = 99.1;
var lower = 97.8;
if ((temp_res.search('Abnormal') > 0) && (temp_f > lower && temp_f < upper)){
return false;
}
Parent topic: General expressions