title: How to place if else block in gruntfile.js
body: <p>Code:</p>
  
  <pre><code>karma: { 
     unit: { 
         if  ("&lt;%= grunt.option('Release') %&gt;" ) 
           {
            //do nothing 
           }
        else
          {
           configFile: 'build/karma.conf.js',
           singleRun: true,
           browsers: ['PhantomJS']
          }
     }
  }
  </code></pre>
  
  <p>how to write correct if else statement in gruntfile.js. 
  I am invoking the gruntfile.js using visual studio project file.</p>