---
title: "DefaultCase ViewHelper <f:defaultCase>"
manual: "Fluid Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/fluid:typo3fluid-fluid-defaultcase"
source: "ViewHelpers/Fluid/DefaultCase.rst"
rendered: "2026-09-26T08:24:58+00:00"
---

# DefaultCase ViewHelper `<f:defaultCase>` {#typo3fluid-fluid-defaultcase}

> [!NOTE]
> This reference is part of the documentation of Fluid Standalone.
> If you are working with Fluid in TYPO3 CMS, please refer to
> [TYPO3's ViewHelper reference](https://docs.typo3.org/other/typo3/view-helper-reference/14.3/en-us/Global/DefaultCase.html) instead.

A ViewHelper which specifies the "default" case when used within the `f:switch` ViewHelper.

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