title: Ruby erb template 'or' operator
body: <p>I have a puppet manifest which uses an erb template.</p>
  
  <p>This is the correct syntax according to the documentation, and it works perfectly. </p>
  
  <pre><code>&lt;% if foo != bar %&gt;
    derp
  &lt;% else %&gt; 
    herp
  &lt;% end %&gt; 
  </code></pre>
  
  <p>How can I combine the if statement with an 'or' operator? </p>
  
  <p>Here are the following syntaxes that I have tried, however they return an error: </p>
  
  <pre><code>&lt;% if foo != bar  or  if slurp != burp %&gt;
    derp
  &lt;% else %&gt; 
    herp
  &lt;% end %&gt; 
  
  Error: Could not run: /etc/puppet/modules/gitlab/templates/gitlab.yml.6-7-stable.erb:275: syntax error, unexpected $end, expecting keyword_end
  ; _erbout.force_encoding(__ENCODING__)
  </code></pre>
  
  <p>I tried changing &lt;% to &lt;%% since this is mentioned in the <a href="http://docs.puppetlabs.com/guides/templating.html" rel="nofollow noreferrer">puppet docs.</a>   </p>
  
  <pre><code>&lt;%% if foo != bar  or  if slurp != burp %%&gt;
    derp
  &lt;% else %&gt; 
    herp
  &lt;% end %&gt; 
  
  Error: Could not run: /etc/puppet/modules/gitlab/templates/gitlab.yml.6-7-stable.erb:241: syntax error, unexpected keyword_else, expecting $end
  ;  else ; _erbout.concat "\n    derp   "
     ^
  </code></pre>
  
  <p>I've tried splitting the if-s</p>
  
  <pre><code>&lt;% if foo != bar  %&gt; or  &lt;% if slurp != burp %&gt;
    derp
  &lt;% else %&gt; 
    herp
  &lt;% end %&gt; 
  Error: Could not run: /etc/puppet/modules/gitlab/templates/gitlab.yml.6-7-stable.erb:275: syntax error, unexpected $end, expecting keyword_end
  ; _erbout.force_encoding(__ENCODING__)
                                    ^
  </code></pre>