title: Programming Techniques/Style for avoiding large switch/if blocks in C?
body: <p>Was just a quick question to see if there are different ways you code something similar when it comes to evaluating conditional statements/control flow.</p>
  
  <p>For example:</p>
  
  <ul>
  <li>If Statements</li>
  <li>Switch Statements</li>
  </ul>
  
  <p>Is there any tidier way to do these as I have basically the option of <code>If (value == X) { // do X }</code> and <code>Switch(value) { case X: ...</code></p>
  
  <p>When doing this with over 100 values is there any data driven approach that could be taken or any different evaluation methods that would tidy up the code?</p>