Value Range Expression 
Value range expressions check if the value of a test parameter lies within a certain range. The result of a value range expression is always a boolean. The expression returns the value as true or false depending on whether the value falls within the defined range.
In the tariff table for a courier company shown below, the rates are calculated based on the region and weight of the consignment. In the table, each cell in the weight column can be represented as value range expressions. The cell values become the value range parameters and the column becomes the test parameter. Each cell in the weight column returns a boolean value depending on the input and the condition described in the table.
Region |
Weight |
Tariff |
|---|---|---|
Asia-Pacific |
Less than 10 kg |
$40 |
Asia-Pacific |
Between 10 kg and 50 kg |
$55 |
Asia-Pacific |
Above 50 kg |
$70 |
Europe |
Less than 10 kg |
$30 |
Europe |
Between 10 kg and 50 kg |
$45 |
Europe |
Above 50 kg |
$60 |