Skip to the content
Documentation

contains

No ratings yet

Summary

Checks if a string contains a specific element.

Usage

input|contains( sequence )

Parameters

Name Type Description Required
sequence string The string that should be matched. Yes.

Returns

TRUE if there is a match, FALSE otherwise.

Description

This operator checks if the input string contains a specific sequence of characters. If a match is found, the operator will return TRUE, otherwise FALSE will be returned.

Examples

Example 1
{'Welcome to my homepage!'|contains( 'my' )}

Returns TRUE.

Example 2
{'Welcome to my homepage!'|contains( 'your' )}

Returns FALSE.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.