InRange

Description

Returns True if the specified value falls within a specified range of values. If the input parameter is a string, the Min and Max parameters specify a string length range to check. For other types, Min and Max specify a numeric or date value range to check.

Note:

If MinExclusive/MaxExclusive is True, then values equal to the Min/Max are included in the range, otherwise they are excluded.

Syntax

InRange(DataType:String,Input:String,Min:String,Max:String,MinExclusive:String,MaxExclusive:String):Boolean

DataType is the data type to use. Valid values: string, integer, float, and datetime.

Input is the string value to test.

Min is the minimum value for length or range check.

Max is the maximum value for length or range check.

MinExclusive specifies whether to exclude the Min value from the range to check.

MaxExclusive specifies whether to exclude the Max value from the range to check.

Example

InRange(Integer,5,1,10,False,False)

Return value is True.