title: Meteor Handlebars: value in array in {{#each}} block
body: <p>I'm new to Meteor/Handlebars using the meteor package <a href="https://atmospherejs.com/aldeed/plans-stripe" rel="nofollow">https://atmospherejs.com/aldeed/plans-stripe</a> which contains these two helpers.</p>
  
  <pre><code>AppPlans.listDefined() - to get the list of all our plans 
   - ["free", "monthly", "yearly"]
  
  AppPlans.get() - to see which plan the user currently has. 
   - ["free"]
  </code></pre>
  
  <p>And <a href="https://github.com/raix/Meteor-handlebar-helpers" rel="nofollow">https://github.com/raix/Meteor-handlebar-helpers</a> which has this useful helper:</p>
  
  <pre><code>{{$eq a b}} if a equals b then return true
  </code></pre>
  
  <p>I'm displaying the plans in my HTML like so:</p>
  
  <pre><code>{{#each AppPlans.listDefined}}
  
     &lt;strong&gt;{{this}}&lt;/strong&gt;
  
  {{/each}}
  </code></pre>
  
  <p>But I'd like to do is something like this; which doesn't work</p>
  
  <pre><code>{{#each AppPlans.listDefined}}
     {{#if $eq AppPlans.listDefined AppPlans.get}}
          &lt;strong&gt;{{this}}&lt;/strong&gt;
     {{else}}
        &lt;span&gt;{{this}}&lt;/span&gt;
     {{/if}}
  {{/each}}
  </code></pre>
  
  <p>What would be the best way to solve this issue?</p>