title: How should I rewrite this long conditional statement to be an array with iterations
body: <p>I'm trying to figure out the best way to rewrite this if statement as it is too long and has alot of OR clauses which are quite tedious. Surely this can be written in a cleaner fashion and I'm trying to figure out the best course of action to rewrite this code. I was thinking that maybe I should put all of the conditionals into an array and then write a for loop to iterate over each condition or is there a better way more concise way?</p>
  
  <p>Thanks for your help</p>
  
  <pre class="lang-js prettyprint-override"><code>if (
        VS_TDO1 == '11' ||
        VS_TDO2 == '11' ||
        VS_TDO3 == '11' ||
        VS_TDO4 == '11' ||
        VS_TDO5 == '11' ||
        VS_TDO6 == '11' ||
        VS_TDO7 == '11' ||
        VS_TDO8 == '11' ||
        VS_TDO9 == '11' ||
        VS_TD10 == '11' ||
        VS_TD11 == '11' ||
        VS_TD12 == '11'
      ) {
        VI_TDCF = VI_TDCF + 1;
      }
  </code></pre>