title: shorthand If Statements: C#
body: <p>Just a quick one, Is there anyway to shorthand this?</p>
  
  <p>It's basically determining the direction left or right, 1 for left, 0 for right</p>
  
  <p>In C#:</p>
  
  <pre><code>if (column == 0) { direction = 0; }
  else if (column == _gridSize - 1) { direction = 1; }
  else { direction = rand.Next(2); }
  </code></pre>
  
  <p>The statement following this will be:</p>
  
  <pre><code>if (direction == 1)
  {
      // do something
  }
  else
  {
      // do something else
  }
  </code></pre>
  
  <p>If there isn't, it doesn't really matter! just curious:)</p>