You can create a formula that compare the values of two arguments by using the comparison function. Each comparison relationship evaluates as true or false based on numeric magnitudes or character rankings. A true relationship evaluates as one, and false evaluates as zero.
See the JSL Syntax Reference for details about syntax.
b is greater than a and less than or equal to c
b is greater than or equal to a and less than c