---
title: "Case ViewHelper <f:case>"
manual: "Fluid ViewHelper Reference"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3fluid-fluid-case@main"
source: "Global/Case.rst"
rendered: "2026-09-25T05:46:13+00:00"
---

# Case ViewHelper `<f:case>` {#typo3fluid-fluid-case}

Case ViewHelper that is only usable within the `f:switch` ViewHelper.

Go to the source code of this ViewHelper: [CaseViewHelper.php (GitHub)](https://github.com/TYPO3/Fluid/blob/main/src/ViewHelpers/CaseViewHelper.php).

## Arguments of the `<f:case>` ViewHelper {#typo3fluid-fluid-case-arguments}

-   **value**

    -   *Type:* mixed
    -   *Required:* true

    Value to match in this case
