Skip to content

range

This DataType performs a simple test on n using the following members.

Members

bool Between[#1,#2:N]

True if N is between the range of #1 and #2, inclusive.

Example

Is 50 between 33 and 66?

| Prints TRUE
/echo ${Range.Between[33,66:50]}

Is 25 between 33 and 66?

| Prints FALSE
/echo ${Range.Between[33,66:25]}

bool Inside[#1,#2:N]

True if N is within the range of #1 and #2, exclusive.

Example

Is 50 Inside 33 and 66?

| Prints TRUE
/echo ${Range.Inside[33,66:50]}

Is 33 inside 33 and 66?

| Prints FALSE
${Range.Inside[33,66:33]}