Scriban
- Actual data: '{ActualValue}'
- Expected data: {ExpectedValue}
- The name of the element is: '{{name}}' --> directly from the json element as set by the filter... Here you use a jsonquery.
- The name of the element is: '[[root.name]]' --> via lookup on ID in the Revit data... ($.RevitData[id=[ID] and type='[TYPE]'])
Scriban table
| col1 | col2 |
|---|---|
[[~ for $i in (4..9) ~]]
 |[[ $i ]] |  [[ $i ]]|
[[~ end ~]]
If then
If.. then... (name == QTY)
[[
if root.name == "QTY"
  "QTY GO"
else 
  "QTY BOOOO!"
end
]]
variable as object
With a variable as object (x: 1, y: 2)
[[
a = {x: 1, y: 2}
a.x 
' en ' 
a.y
]]
With data from the total results. Here a jsonata is ran over the total data: $distinct($.RevitData[type='FamilyInstance'].name) Only the 2nd and the 4th item is shown from this list
[[
a = ["a","b","c","d"]
'2nd Item: '
a[1] 
' and fourth item: ' 
a[3]
]]