title: TYPO3 - How to check if a news article has a certain category with fluid
body: <p>How can I check that a news article has a certain category? And when a news article is allocated to a certain category I want to add some additional information to the article (Detail). I tried this in Template/News/Detail.html e.g.: </p>
  
  <pre><code>//&lt;f:for each="{categories}" as="category"&gt;
      &lt;f:if condition="{category.title} == 'Category01'"&gt;
          &lt;f:then&gt;
              &lt;h4&gt;It worked!&lt;/h4&gt;
          &lt;/f:then&gt;
          &lt;f:else&gt;
              &lt;h4&gt;Didn't work!&lt;/h4&gt;
          &lt;/f:else&gt;
      &lt;/f:if&gt;
  //&lt;/f:for&gt;
  </code></pre>