Hello,In the Evaluate section, there are two different variables: $source1
and $source.  How can it display "abc" when $source is never defined?

Evaluate

The *#evaluate* directive can be used to dynamically evaluate VTL. This
allows the template to evaluate a string that is created at render time.
Such a string might be used to internationalize the template or to include
parts of a template from a database.

The example below will display abc.

#set($source1 = "abc")
#set($select = "1")
#set($dynamicsource = "$source$select")
#evaluate($dynamicsource)

Reply via email to