If statement that tests if a value is in range
snippet in c
If statement that tests if a value is in range
user1146
if ((x >= xmin) && (x <= xmax)) {
// something
}