Business Rules 10.7 | webMethods Business Rules Web Help | webMethods Business Rules Reference | Functions | Summary of List and Range Functions | boolean inRange(Double[][] listOfRanges, boolean inclusiveLower, boolean inclusiveUpper, Double[] exclusions)
 
boolean inRange(Double[][] listOfRanges, boolean inclusiveLower, boolean inclusiveUpper, Double[] exclusions)
Indicates whether or not this floating point (double, float) value is within the specified list of ranges. A separate list of exclusions can be provided to indicate that even though the double value is within the list of ranges, it should not be accepted if found within the exclusions list. Upper and lower end of list can optionally be included.
Note:
The double data type is a double-precision 64-bit IEEE 754 floating point. A double literal is of type double if it contains a decimal (e.g., 7.9). Double and float data types can be passed as arguments to the function. The inRange function is overloaded and supports other numeric ranges such as integer, short, long, etc. To ensure that the correct signature is invoked, make sure that the proper numeric syntax is used (no decimal for integer, decimal for floating point).
Input Parameters
listOfRanges
Integer List The list of ranges to check against. This is a two-dimensional long array with the outer dimension containing the list of ranges and the inner dimension containing the upper and lower bounds of each range. The outer dimension can contain 1-n elements, while the inner dimension must always contain exactly two elements.
inclusiveLower
Boolean Indicates whether or not to include the lower end of each range.
inclusiveUpper
Boolean Indicates whether or not to include the upper end of each range.
exclusions
Integer List An array of items to be excluded from the range check.
Return Value
Boolean Returns true if this integer exists within the specified list of ranges, false otherwise.