---
title: "Or ViewHelper <f:or>"
manual: "Fluid ViewHelper Reference"
version: "14.3"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3fluid-fluid-or@14.3"
source: "Global/Or.rst"
rendered: "2026-10-01T16:43:06+00:00"
---

# Or ViewHelper `<f:or>` {#typo3fluid-fluid-or}

Or ViewHelper

If content is null use alternative text.

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

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

-   **alternative**

    -   *Type:* mixed

    Alternative if content is null

-   **arguments**

    -   *Type:* array

    Arguments to be replaced in the resulting string, using sprintf

-   **content**

    -   *Type:* mixed

    Content to check if null
