Skip to content

Added combine (&) operator

Latest
Compare
Choose a tag to compare
@RhetTbull RhetTbull released this 24 Mar 15:20
· 1 commit to main since this release

Combine operator

v0.1.3

24 March 2024

Synopsis

"pretext{delim+template_field:subfield|filter[find,replace]conditional&combine_value?bool_value,default}posttext"

&combine_value: Template fields may be combined with another template statement
to return multiple values. The combine_value is another template statement. For
example, the template {created.year&{audio:title,}} would resolve to ["1999",
"The Title"] if the file was created in 1999 and had the title "The Title".
Because the combine_value is a template statement, multiple templates may be
combined together by nesting the combine operator:
{template1&{template2&{template3,},},}. In this example, a null default value is
used to prevent the default value from being combined if any of the nested
templates does not resolve to a value.

Added

  • Added combine operator (&) to combine two templates (results in multi-value template)