title: Converting a string into a boolean condition
body: <p>Say I have a String</p>
  
  <pre><code>String strCondition = something.contains("value") &amp;&amp; somethingElse.equals("one");
  </code></pre>
  
  <p>How do I convert this String into a boolean condition so that I can be able to use it in an <code>IF</code> statement?</p>
  
  <p>If I use <code>valueOf()</code>, will it evaluate the contents of the String? </p>
  
  <p><strong>RE-EDIT:</strong> I am not sure how to put this.</p>
  
  <p>I am taking the value  <code>something.contains("value") &amp;&amp; somethingElse.equals("one")</code> from a database column. If I try to assign that to <code>boolean</code> variable it shows a type mismatch.</p>