What is your goal?
I’m trying to take an numeric value (for example, a company size of 12 coming from an API) and convert it into a predefined range label like “5–25”, “25–50”, etc, so I can map it into a dropdown/enum field that only accepts those range values. I’d ideally like to handle this with as few steps as possible and avoid creating multiple router paths for each individual range
What is the problem?
When I use if() or switch() expressions inside Set Variable or directly in mapping fields, the expressions either get stored as plain text instead of being computed, or the output ends up blank, and I don’t want to avoid creating 8 different routes to fix this, unless it’s the only solution
What have you tried so far?
Building nested if() expressions in Set Variable to map the number into a range
Using switch() expressions for the same logic
Forcing conversion with toNumber()
Using Text Parser to extract the numeric value and then applying the range logic
Trying both Set Variable and Set Multiple Variables modules






