--- title: "contains()" slug: "string-contains" updated: 2026-08-17T05:40:50Z published: 2026-08-17T05:40:50Z canonical: "docs.lobstersoftware.com/string-contains" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # contains() This function returns "true" if the text **a** contains the text **b**. ## Parameters | Parameter | Description | | --- | --- | | a | Text to search in. | | b | Search term. | ## Examples | Parameter a | Parameter b | Result | | --- | --- | --- | | Hello | ell | true | | Hello | lle | false |