title: Accessing the value of a specific index of a list for use in an IF statement (Freemarker)
body: <p>I am attempting to access the value of the current index of the list object dfeNumber, check if it is the first instance of this number, and add a visual break.  I have never worked in Freemarker before (primarily the surrounding css), and have spent a bit of time looking through the Apache manual, but I cannot find an example of this kind of usage. I think it would look similar to: </p>
  
  <pre><code>&lt;#assign msaReached=0&gt;
  
  &lt;#list invName as invNames&gt;
  
  &lt;#if ${dfeNumber[invNames_index]} = "900"&gt; 
    &lt;#assign msaReached++&gt;
    &lt;#if msaReached=1&gt;
      -- do stuff --
    &lt;/#if&gt;
  &lt;/#if&gt;
  </code></pre>
  
  <p>Would anyone be able to point me to an example of the syntax for usage in scenario?  Any help would be greatly appreciated.</p>