webMethods Business Rules 10.5 | webMethods Business Rules Web Help | webMethods Business Rules Reference | Functions | Summary of List and Range Functions | boolean inRange(String[][] listOfRanges, boolean ignoreCase, boolean inclusiveLower, boolean inclusiveUpper, String[] exclusions)
 
boolean inRange(String[][] listOfRanges, boolean ignoreCase, boolean inclusiveLower, boolean inclusiveUpper, String[] exclusions)
Indicates whether or not this string is within the specified list of ranges. A separate list of exclusions can be provided to indicate that even though the string is within any of the lists of ranges, it should not be accepted if found within the exclusions list. Upper and lower end of list can optionally be included. Case sensitivity can be ignored while checking.
Input Parameters
listOfRanges
String List The list of ranges to check against. This is a two-dimensional string 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.
ignoreCase
Boolean Indicates whether or not case differences should be ignored.
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
String List An array of items to be excluded from the range check.
Return Value
Boolean Returns true if this string exists within the specified list of ranges, false otherwise.

Copyright © 2010-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.