title: C# Dynamic IF Else Statment
body: <pre><code>allrowcol[i] = rowcol + "||";
  </code></pre>
  
  <p>Is it possible to put :</p>
  
  <pre><code>if (loop == allrowcol.ToString())
  </code></pre>
  
  <p>If not, how can I place a few values inside an <code>if</code> statement?</p>
  
  <p>I need to have a few values in the <code>if</code>, and this value is generated from a text file.</p>
  
  <p>e.g. <code>if(loop==11||14||15||16")</code></p>
  
  <p>My array for the <code>allrowcol.ToString()</code> is "11||14||15||16||". <code>rowcol</code> is the number that I extract from my text file. But my <code>if</code> (read as a whole string).</p>
  
  <p>What can I do?</p>