Since $souce is not defined, $dynamicsource will contain "$source1", which is then evaluated...
Claude Le lundi 22 octobre 2007 à 20:56 -0700, Luan Nguyen a écrit : > 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) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
