title: If ... do this if statement?
body: <p>I am stuck on some php coding, that seemed initially easy to accomplish. Here is what i would like to do :</p>
  
  <pre><code>&lt;?php
  $amountOfDigits = 1;
  $numbers = range(1,3);
  shuffle($numbers);
  
  for($i = 0;$i &lt; $amountOfDigits;$i++)
  $digits .= $numbers[$i];
  
  while ( have_posts() ) : the_post(); 
  static $count = 0;
  
  if ($digits == '1') { 
  //Do this if statement
  if ($count == "2") }
  elseif ($digits == '2') { 
  //Do this if statement
  if ($count == "2" || $count == "3") }
  elseif ($digits == '3') { 
  //Do this if statement
  if ($count == "2" || $count == "3" || $count == "4") }
  
   { //here the rest of the code
  </code></pre>
  
  <p>?></p>
  
  <p>So depending on the $digits variable, the if statement is formatted to be used on the line above <code>//the rest of the code</code></p>
  
  <p>How to put this in PHP properly?</p>
  
  <p>Thanks.
  Robbert</p>