title: String comparison in freemarker not working
body: <pre><code>&lt;#if ${primaryName!}?has_content&gt; &amp;&amp; ${key?js_string!}=="Joe"&gt;
  //do something
  
  &lt;#elseif ${primaryClass!}?has_content&gt; &amp;&amp; ${key?js_string!}=="Apple"&gt;
  //do something
  
  &lt;#else&gt;
  //do something
  
  &lt;/#if&gt;
  </code></pre>
  
  <p>The above gives me error that something is expected at the end. { ] &amp;&amp; . Whats wrong in the above?</p>
  
  <pre><code>Encountered "{" at line 26, column 39 in abc.ftl. Was expecting one of: "&gt;" ... "." ... "[" ... "(" ... "?" ... "!" ... &lt;TERMINATING_EXCLAM&gt; ... "??" ... "+" ... "-" ... "*" ... "/" ... "%" ... "!=" ... "=" ... "==" ... "&gt;=" ... &lt;ESCAPED_GTE&gt; ... "&gt;" ... &lt;ESCAPED_GT&gt; ... &lt;LESS_THAN_EQUALS&gt; ... &lt;LESS_THAN&gt; ... ".." ... &lt;AND&gt; ... &lt;OR&gt; ...
  </code></pre>