<p>Im trying to write an IF statement in my configmap but I cannot find any sites that combine and IF statement with OR. For example:</p>

<pre><code>      &lt;% if @project_name == 'site-a' || 'site-b' %&gt;
      security:
        default-groups:
          - reader # Read only for everybody
      &lt;% end %&gt;
</code></pre>

<p>Would this be accurate? Ideally, if the variable is called site a or site b. I can probably do an else block but it's not necessary.</p>

<p>Thanks. </p>

b0uncyfr0
<p>The initial code was not using the comparison correctly. 
In the first line you only evaluated the the project in the first part and assumed that computer will know that the same operation is applied to both values. </p>

<pre><code>&lt;% if @project_name == 'site-a' || 'site-b' %&gt;
</code></pre>

<p>The operator doesn't checks if a value is a member of a set which means you should check each  <code>@project_name</code> explicitly so that both values are compared:</p>

<pre><code>&lt;% if @project_name == 'site-a' || @project_name == 'site-b' %&gt;
</code></pre>
