Make.com LabIntermediate
Map Values with switch() in Make.com
Your CRM sends deal stages as short codes. Convert them to readable labels for a client report.
Live Execution Simulator
Idle
π₯
Incoming Data
βοΈ
Make.com Node
π―
Next Step
> Ready. Type your expression below and click "Check Answer" to run the node.
Incoming Payload / Data:
{
"stage": "won"
}
Press Enter or click Check Answer. +20 XP
β Solution & explanation
switch(stage; new; New lead; won; Customer; Other)
Output: Customer
switch() compares the expression against each value in order and returns the matching result. The last odd argument is the default returned when nothing matches.π‘ Pro tip: Use switch() for simple value mapping; reserve Routers for when different paths need different modules.
Also accepted: switch(stage; "new"; "New lead"; "won"; "Customer"; "Other")