---
title: "Or ViewHelper <f:or>"
manual: "Fluid ViewHelper Reference"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3viewhelper:typo3fluid-fluid-or@main"
source: "Global/Or.rst"
modified: "2026-09-17T05:12:06+00:00"
---

# Or ViewHelper `<f: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

-   **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
