title: If Condition with or operator not working in smarty
body: <p>I am working on a smarty project where I am using <code>if</code> condition.</p>
  
  <pre><code>{if $userroleid neq 12 || $userroleid neq 13 || $userroleid neq 14 }
      &lt;a href="{$v.feature_url}" class="re-upload"&gt; Re-upload&lt;/a&gt;
  {else}
      &lt;a href="{$v.feature_url}" class="re-upload"&gt; View&lt;/a&gt;
  {/if}
  </code></pre>
  
  <p>I tried the above code.</p>
  
  <p><strong>My Assumption:</strong> If <code>$userroleid</code> is equal to 12 or 13 or 14, It should display <strong>"View"</strong>, else It should display <strong>"Re-upload"</strong>. </p>
  
  <p>It is now showing "Re-upload" if <code>$userroleid</code> equal to 12.</p>
  
  <p>What I did wrong?</p>
  
  <p>I have seen the below questions which is not help me either.</p>
  
  <p><a href="https://stackoverflow.com/questions/18527644/smarty-nested-if-condition-is-not-working-properly">smarty nested if condition is not working properly?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/6717436/smarty-3-if-mixed-conditions-operators">Smarty 3: if, mixed conditions &amp; operators</a></p>