title: Is there an easier way to do boolean conversions?
body: <p>I have used this scenario many times in nearly all my projects, when I'm doing some sort of data conversion, when it comes to booleans, I kinda get a little lost when it comes to making it simple. This statement below sticks out like a sore thumb all over my code:</p>
  
  <pre><code>if BoolVal then
    StrVal:= 'True'
  else
    StrVal:= 'False';
  </code></pre>
  
  <p>I'm wondering if there's an easier way to perform this evaluation? Perhaps some use of the <code>Case</code> statement I don't know about? My actual implementation is more complex than just <code>StrVal</code> but it does consist of returning two different values depending on whether it's True or False. For example, here's some real code...</p>
  
  <pre><code>if fsBold in Can.Font.Style then
    ConvertTo(AddSomeOtherText + 'True')
  else
    ConvertTo(AddSomeOtherText + 'False');
  </code></pre>
  
  <p>That's just to emphasize on how simple I'm hoping. I'm wondering if I can do something along the lines of this:</p>
  
  <pre><code>ConvertTo(AddSomeOtherText + BoolToStrCase((fsBold in Can.Font.Style), 'True', 'False'));
  </code></pre>
  
  <p>I'm sure that's not a real command, but I'm looking for that type of simplicity in one single line.</p>