How to use the MAP operation for Computed Attributes
Definition
The MAP operation applies an operation to a list of inputs.
Example
MAP(SUM($$ITEM, 3), [1, 2, 3])
Result:
4,5,6
Syntax Guide
MAP(operation, list)
operation - the operation to perform. Use the '$$ITEM' placeholder to reference the element of the list you're working with
list - the list of elements to apply the operation to
Formula in Use
Apply bullet points in HTML format to multiselect attributes
CONCAT("<ul>",JOIN(MAP(CONCAT("<li>",$$ITEM,"</li>"), $ATT.Multiselect), ""),"</ul>")
What's Next?
- Learn more about how to write formulas
- Check out the GT operation
- Check out the GTE operation
If you have any questions just click on the chat box in the bottom-right corner and we'll be happy to answer them...
and please let us know 👇