How can I set a value to some predefined ranges. For example I have a key “number” with a value of 13400. I want Alumio to set a new key called “numberFilter” where the value should be 20000.
The “numberFilter” key should be restricted to the following values: 0, 20000, 40000, 60000, 80000, 100000, 120000 and 140000. A value from “number” should be round up to the nearest value. If a value is above 120000, it should always be 140000.
Is the key “numberFilter” reusable in other parts of the transformer? If not, we suggest using a Value Setter in combination with “Dictionary Map” to set the value of key number, as shown below.