Design

Distinct

Print only distinct value
COMMUNITY FEATURE Available for:
Carbone Cloud
Carbone On-premise
Embedded Carbone JS
  v2.0+ 

Distinct items

A custom iterator can be used to select distinct rows according to the attribute's value.

data
[
  { "type": "car"  , "brand": "Hyundai" },
  { "type": "plane", "brand": "Airbus" },
  { "type": "plane", "brand": "Boeing" },
  { "type": "car"  , "brand": "Toyota" }
]
template
Vehicles{d[type].brand}{d[type+1].brand}
Carbone Merge Icon
result
VehiclesHyundaiAirbus