Floating Point Intrinsic Functions - IsBetween Method

Test if the value is within a range

Member of Floating Point Intrinsic Functions (PRIM_LIBI.IFloatingPointIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)BooleanTrue if the value is within a range
NumberOne*InputFloatLower boundary
NumberTwo*InputFloatUpper boundary

Details

IsBetween tests the value of a number and returns true if it is within the limits specified.
 
A value equal to either of the limits is considering to be within the limits.

Example

In this example, a button is enabled if the value is within the specified bounds.
#Button.enabled := #Number.IsBetween(1 100)
This is equivalent to writing
#Button.enabled := ((#Number >= 1) and (#Number <= 100))

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2