strContains

Modified on Wed, 02 Aug 2023

Description

Check whether a string contains a search string.

Syntax

strContains(text, search)

Parameters

Input ParameterTypeDescription
textstringSource string
searchstringThe string to search for

Return value

Type
boolean

Sample

ExampleResultDescription
strContains('invoice date : 2020-10-10', 'date')trueCheck if the input string contains search string 'date'

To view all the String functions, click here.