How to check if your variable suit the conditions given in query range

Use inRange methods from Global class

static boolean inRange(str _rangeValue, anytype _value)

Example:

    
{
    str 		_rangeValue;
    str 		_value ;
    boolean 	        result;
    ;
    _rangeValue  = ‘200..500’;
    _value          =  ‘300’;

    result  = Global::inRange (_rangeValue , _value);
}

The result variable will be equal to true