method
checkValueInInterval

void checkValueInInterval(
int value,
int minValue,
int maxValue,
[String name,
String message]
)

Check that a value lies in a specific interval.

Throws if value is not in the interval. The interval is from minValue to maxValue, both inclusive.