title: How to check if variable in array in vbscript
body: <p>I'm refactoring my code and trying to cut down on repetition. I've got this working code</p>
  
  <pre><code>&lt;% If tree &lt;&gt; "" or (info &lt;&gt; "" and info &lt;&gt; "links" and info &lt;&gt; "privacy" and info &lt;&gt; "talks") Then %&gt;
              write stuff
  &lt;% End If %&gt;
  </code></pre>
  
  <p>I put the info variables into an array</p>
  
  <pre><code>Dim info(3)
  info(0) = "Talks"
  info(1) = "Privacy"
  info(2) = "Links"
  </code></pre>
  
  <p>I'm unclear as to iterate through the array</p>
  
  <pre><code>&lt;% If tree &lt;&gt; "" or (info &lt;&gt; "" and **info &lt;&gt; arrayInfo** Then %&gt;
              write stuff
  &lt;% End If %&gt;
  </code></pre>
  
  <p>Little help. Thanks.</p>