Designing and Implementing Business Process Models 10.4 | Designing and Implementing Business Process Models | Business Rules Reference | Functions | Summary of List and Range Functions | boolean inRange(Double lowerBound, Double upperBound, Double[] exclusions)
 
boolean inRange(Double lowerBound, Double upperBound, Double[] exclusions)
Indicates whether or not this floating point (double, float) value is within the specified range. The checking is inclusive, meaning that the lower and upper bounds of the range will be tested for the double value. A separate list of exclusions can be provided to indicate that even though the double value is within the range, it should not be accepted if found within the exclusions list.
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
lowerBound
Integer The lower bound of the range to check against (inclusive).
upperBound
Integer The upper bound of the range to check against (inclusive).
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 range, false otherwise.

Copyright © 2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Innovation Release