/
Variables
Variables
Using a simple variable
IdealDoc expressions are some contents enclosed by double curly braces {{}}
. In the below template, firstname
is a variable that is enclosed by double curly braces, which is said to be an expression.
{{firstname}} {{lastname}}
If the below input object is applied to the template.
{
firstname: "Yehuda",
lastname: "Katz",
}
Expressions are compiled to produce the output as follows:
Yehuda Katz
Path expressions
IdealDoc expressions can also be dot-separated paths.
This expression looks up the person property in the input object and in turn looks up the firstname
and lastname
property within the person object.
Pass the below input object to the template.
Output will be generated as below:
, multiple selections available,
Related content
Lookup
Lookup
More like this
Conditionals
Conditionals
More like this
More about IdealDoc functions
More about IdealDoc functions
More like this
Iterators
Iterators
More like this
Subexpressions
Subexpressions
More like this
Create a Query
Create a Query
More like this