Checks if a value is within the specified bounds (inclusive).
The value to check.
The lower bound.
The upper bound.
True if val is between lowerBound and upperBound.
Checks if a value is within the specified bounds (inclusive).