title: Get rid of ugly if statements
body: <p>I have this ugly code:</p>
  
  <pre><code>if ( v &gt; 10 ) size = 6;
  if ( v &gt; 22 ) size = 5;
  if ( v &gt; 51 ) size = 4;
  if ( v &gt; 68 ) size = 3;
  if ( v &gt; 117 ) size = 2;
  if ( v &gt; 145 ) size = 1;
  return size;
  </code></pre>
  
  <p>How can I get rid of the multiple if statements?</p>