You have been redirected from an outdated version of the article. Below is the content available on this topic. To view the old article click here.

contains()

Usage

contains(string, word)

contains(collection, element)

Description

Returns a boolean value that indicates whether the given string contains the given word or the given collection contains the given element.

Examples

${contains('This is a test string', 'test')}

${contains(find('Page'), page)}

results in

true

Search results for "contains()"

contains()

Returns a boolean value that indicates whether the given string contains the given word or the given collection contains the given element.

contains(string, word)
contains(collection, element)