Skip to main content

contains (Function)

This function returns true if theinput.string contains the specified sequence of char values in the search.string.

Syntax

<BOOL> str:contains(<STRING> input.string, <STRING> search.string)

Query Parameters

NameDescriptionDefault ValuePossible Data TypesOptionalDynamic
input.stringInput string value.STRINGNoYes
search.stringThe string value to be searched for in the input.string.STRINGNoYes

Example 1

contains("21 products are produced by gdn currently", "gdn")

This returns a boolean value as the output. In this case, it returnstrue.