addIf
Make a group of two or three consecutive values and only print the first and/or last value of each group if the main value is defined.
1
| {{$addIf [value1] [value2] [value3] [value4]...}}
|
Params
1 2 3 4 5
| {{addIf "add value" "string value" "add value" side="both" trimLast=true }}
|
1 2 3 4
| {{addIf "add value" "string value" side="left" }}
|
1 2 3 4
| {{addIf "string value" "add value" side="right" }}
|
Options
side | left |
right |
both |
trimLast | true/false Remove the last add value for the last group, only works for side=”both” and side=”right” |