You can easily accomplish this by using the map transform.
If you use boolean type data tag, simply use true & false instead of numeric input range.