---
title: "Feature ViewHelper <f:feature>"
manual: "Fluid ViewHelper Reference"
version: "13.4"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3-fluid-feature@13.4"
source: "Global/Feature.rst"
modified: "2026-09-17T09:07:45+00:00"
---

# Feature ViewHelper `<f:feature>`

ViewHelper to check if a feature flag is enabled, implemented as a condition like an "if" construct.

Go to the source code of this ViewHelper: [FeatureViewHelper.php (GitHub)](https://github.com/TYPO3/typo3/blob/main/typo3/sysext/fluid/Classes/ViewHelpers/FeatureViewHelper.php).

**Table of contents**

-   [Examples](https://docs.typo3.org/permalink/t3viewhelper:examples@13.4)
-   [Arguments of the <f:feature> ViewHelper](https://docs.typo3.org/permalink/t3viewhelper:arguments-of-the-f-feature-viewhelper@13.4)

## Examples

### Basic usage

**packages/my_extension/Resources/Private/Templates/Blog/List.fluid.html**

```html
<f:feature name="myFeatureFlag">
  This is being shown if the flag is enabled
</f:feature>
```

### Feature / then / else

**packages/my_extension/Resources/Private/Templates/Blog/List.fluid.html**

```html
<f:feature name="myFeatureFlag">
  <f:then>
    Flag is enabled
  </f:then>
  <f:else>
    Flag is undefined or not enabled
  </f:else>
</f:feature>
```

## Arguments of the `<f:feature>` ViewHelper

-   **else**

    -   *Type:* mixed

    Value to be returned if the condition if not met.

-   **name**

    -   *Type:* string
    -   *Required:* true

    name of the feature flag that should be checked

-   **then**

    -   *Type:* mixed

    Value to be returned if the condition if met.
