js if equal to any of range code example Example: If statement that tests if a value is in range if ((x >= xmin) && (x <= xmax)) { // something }