contains

Says whether text contains a piece of text, or whether a list contains a value. Text is compared case-sensitively; a list item must be the same value of the same kind (the number 5 is not the text "5"). Null contains nothing.

Runs on: either side: the compiler places the statement that calls it where the values it uses live.

Format:

contains(text_or_list, value)

Parameters:

Parameter Type Description
text_or_list mixed the text, or the list, to look in
value mixed the text to find in the text, or the item to find in the list

Returned Value:

Type Description
bool true when found

Examples

if (contains(lower(title), lower(search))) { ... }