Mapping array with key-value pairs into a string

I’m trying to map the atAGlanceFacts array and format the results as a single string using the set variable module:

Type: Townhouse, Year Built: 2002, Heating: Central, Cooling: Central Air, Parking: 2 Attached Garage spaces, HOA: $520 monthly, Lot: empty, Days on Zillow: 27 Days, Price/sqft: $546, Offer Review Date: empty

Here is what I have so far but it only outputs the fact values.

{{join(map(3.resoFacts.atAGlanceFacts; “factLabel” & ": " & if(“factValue” != “”; “factValue”; “empty”)); ", ")}}

      • Townhouse, 2002, Central, Central Air, 2 Attached Garage spaces, $520 monthly, , 27 Days, $546,

What am I doing wrong? Thanks!


1 Like