Determines if the argument lies between the bounds.
Result = BETWEEN(Lowerbound, Argument, Upperbound)
Lowerbound: Scalar or array of lower bounds.
Argument: Scalar or array of numerical argument.
Upperbound: Scalar or array of upper bounds.
GTSTRICT: Argument must be strictly greater than Lowerbound,
rather than greater or equal to.
LTSTRICT: Argument must be strictly less than Upperbound,
rather than less or equal to.
Outputs 1 for any element where Argument is between Lowerbound and
Upperbound, and 0 for all other elements. Values equal to Lowerbound
and Upperbound return 1 unless overridden by /GTSTRICT and/or /LTSTRICT.
Each of the inputs may be either a scalar or an array, but if more than
one are arrays then they must have the same numbers of elements.
IDL> print, between(2.5, [0,1,2,3,4], 7.)
0 0 0 1 1
Written by: Jeremy Bailin
18 July 2009 Public release in JBIU