title: do this without using an "if" | if(s == "value1"){...} else if(s == "value2") { ...}
body: <p>According to <a href="http://www.antiifcampaign.com/" rel="noreferrer">anti-if campaign</a> it is a best practice not to use ifs in our code. Can anyone tell me if it possible to get rid of the if in this piece of code ?   (switch is also not an option, <strong>The point is to remove the conditional logic, not replace ifs with similar language constructs</strong>)</p>
  
  <pre><code>if(s == "foo")
  {
      Writeln("some logic here");
  }
  else if(s == "bar")
  {
      Writeln("something else here");
  }
  else if(s == "raboof")
  {
      Writeln("of course I need more than just Writeln");
  }
  </code></pre>
  
  <p>(language: Java or C#)</p>