Dynamic Maps¶
A dynamic map resolves a value through an ordered list of condition → result entries. Each entry has an optional condition expression and a result template. The first entry whose condition is true (or that has no condition) wins.
Usage in expressions¶
The inputValue is made available inside entry conditions as the variable value.
Inside the result template, {value} is replaced with the input value.
See Functions → Map functions for full documentation.
Entry structure¶
| Property | Description |
|---|---|
| Condition | Optional boolean expression using value; if blank the entry always matches |
| Result template | The return value; {value} is replaced with the input |
Entries are evaluated in order. Put more specific conditions before general ones.
Example¶
A dynamic map named price-tier that categorises a numeric ID:
| Condition | Result |
|---|---|
IntBetween(value, 1, 99) |
budget |
IntBetween(value, 100, 999) |
standard |
| (no condition) | premium |
/product/item/50→budget/product/item/500→standard/product/item/5000→premium
No match¶
If no entry matches and there is no unconditional entry, DynMap() returns "". The Tester will show a warning in the extract column when this occurs.