My basic scenario is the following: I’m receiving via webhook an order from my website (json format). But most of the information is encoded and I want to write the full order in clear language.
For example location #1 is Coyoacán, location #2 is Santa Fe, etc
I have like 15 things to “translate” to format a string, sometimes with several parameters:
For example something like IF (location=1 AND type= DELIVERY) then Time=15 mns
and I need to format with new lines.
I’m wondering what will be the easiest way to do it:
compose several strings with several routers and concatenate them at the end
-Using variables and functions
-Using text aggregators and functions (not easy to read)
-Make the data transformation in javascript
-Something I didn’t think of.