title: Conditional CSS rules with less, based on variable
body: <p>The variable can take percentage or px values, like:</p>
  
  <p><code>@some-var: 50px;</code> or <code>@some-var: 46%;</code></p>
  
  <p>How can I define a certain set of CSS rules if the value is in pixels, and a different set of rules if the values is in percentages?</p>
  
  <p>Is there something like</p>
  
  <pre><code>if(isValueInPixels(@some-var)){
  
    // css rules here
  
  
  }else{
  
    // other rules here
  }
  </code></pre>
  
  <p>?</p>