title: Can you set a variable inside a mixin in LESS CSS?
body: <p>I understand LESS doesn't have if/else structure and instead relies on guarded mixin statements.  It doesn't appear to be able to set a LESS CSS variable inside of a mixin though.  </p>
  
  <p>Anyone have an idea of how I could implement something to the effect of.</p>
  
  <pre><code>if( ispercentage( @height ) {
    @height: "1024px";
  }
  
  // Calculations dependent on @height
  @textAreaHeight = 0.5 * @height;
  @buttonHeight = 0.2 * @height;
  </code></pre>
  
  <p>I've looked at several other stackoverflow questions including: 
  <a href="https://stackoverflow.com/questions/9489892/less-css-setting-variable-within-mixin">LESS CSS - Setting variable within mixin</a></p>