Skip to main content

String Contains

Check if a string contains another string.

Written by Holly Conrad Smith

Use this when you want to check if a string includes a specific substring within a flow, for example filtering features by a keyword in a name or property value.

Inputs

Name

Abbreviation

Type

Access

Description

String

S

string

item

The string to search in.

Substring

S

string

item

The substring to find.

Outputs

Name

Abbreviation

Type

Access

Description

Contains

C

boolean

item

True if the string contains the substring.

How to

  1. Feed in a string to search within

    Connect a string result from another node (such as read feature property)

    Or, type in the text box

  2. Feed in a string to search for

    Connect a string result from another node (such as Get Usage)

    Or, type in the text box

  3. The result is a boolean

    True if the first string contains exactly the second string

    False if the first string does not contain exactly the second string

The search is case specific, and searched for the exact match, not full word matches.

For instance:

Does this string contain the word string?

Does not contain STRING or String, but it does contain strin or ring.

Did this answer your question?