title: Freemarker: assign interpreted variable to other variable
body: <p>I would like to assign the result of an interpreted variable to another varialbe.</p>
  
  <p>Freemarker provides the built-in <code>?interpret</code> to interpret a variable holding an ftl expression. See <a href="http://freemarker.sourceforge.net/docs/ref_builtins_expert.html#ref_builtin_interpret" rel="nofollow">http://freemarker.sourceforge.net/docs/ref_builtins_expert.html#ref_builtin_interpret</a></p>
  
  <p>If I do</p>
  
  <pre><code>[#if var1?has_content &amp;&amp; var1?starts_with(r"${")]
      [#assign interpretedValue = var1?interpret!""]
      [@interpretedValue/]
  [/#if]
  </code></pre>
  
  <p>The <code>[@interpretedValue/]</code> will output the interpreted value.</p>
  
  <p>However, I'd like to assign the value of the interpreted value to a variable (in order to do some things such as <code>?has_content</code> in the rest of my code). I tried <code>[#assign varInterpretedValue = @interpretedValue]</code> but this does not work.</p>
  
  <p>Is this possible?</p>