Contains method (text)

Returns a value indicating whether a specified text occurs within this text.

Syntax

text1.Contains(text2)

Returns true if text1 contains text2; otherwise, false.

The test is case sensitive.

Example

{% Var value1 = 'abcdef' %}
{% Var value2 = 'bcd' %}

Answers: {{ value1.Contains(value2) }},
         {{ value1.Contains('xyz') }},
         {{ value2.Contains('abc') }}

The above example would output: Answers: True, False, True