title: Simple ways to disable parts of code
body: <p>This isn't a typical question to solve a specific problem, it's rather a brain exercise, but I wonder if anyone has a solution.</p>
  
  <p>In development we often need to disable or switch some parts of code to check different approaches. To do this we use comments or <code>#defines</code>, but my favorite is:</p>
  
  <pre><code>//*
  [code here]
  //*/
  </code></pre>
  
  <p>Now when you remove just the first slash the code will become commented-out.</p>
  
  <p>The question: is there any way to implement similar <strong>if-else</strong> code switch? I tried to find it but I always had some problem and couldn't find a working solution.</p>
  
  <p>And maybe do you know any similar tricks?</p>