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

# StartsWith ViewHelper `<f:startsWith>`

StartsWith ViewHelper checks if the subject string starts with a specified string.
This ViewHelper implements an if/else condition.

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

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

-   **else**

    -   *Type:* mixed

    Value to be returned if the condition if not met.

-   **search**

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

    String to search in subject at the beginning

-   **subject**

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

    String to search in

-   **then**

    -   *Type:* mixed

    Value to be returned if the condition if met.
