title: Clean way to switch between typo3 fluid page and action link
body: <p>Is there a more clean way to switch between a page or a action link in fluid based on a var?</p>
  
  <p>Now i used the if then statement but this increases a lot of double code lines. See example:</p>
  
  <pre><code>&lt;f:if condition="{var}"&gt;
      &lt;f:then&gt;
          &lt;f:link.page pageUid="{PageId}"&gt;
  
              // a lot of code lines
  
          &lt;/f:link.page&gt;
      &lt;/f:then&gt;
      &lt;f:else&gt;        
          &lt;f:link.action pluginName="Name" controller="Cont"&gt;
  
              // the same a lot of code lines again
  
          &lt;/f:link.action&gt;
      &lt;/f:else&gt;
  &lt;/f:if&gt;
  </code></pre>