title: (one line if) ? bool is true - give me string
body: <p>I can't wrap by head around this even though I've read many stackoverflow threads.</p>
  
  <p>I check if the page has a specific property value like so:</p>
  
  <pre><code>bool categoryCount = CurrentPage.HasValue("blogCategories");
  </code></pre>
  
  <p>I want to transform this into a one-line if statement so I can parse a string to a class like illustrated below:</p>
  
  <pre><code>string situation = (categoryCount.ToString() == "true") ? '' : '';
  </code></pre>
  
  <p>PS: I apologize for the missing logic behind my thoughts/goal. I'm new at programming.</p>