Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ProtoFlux:Contains

Contains is a ProtoFlux node that returns if Substring (String) occurs anywhere in Str (String) as a bool.
Contains
Str
*
Substring
Strings

This page is about the node that checks if a string contains a substring. If you're looking for the node that checks if a list contains a certain element, see Contains (Collections).

Contains is a ProtoFlux node that returns true if Substring (String) occurs anywhere in Str (String) as a bool. Contains is case, whitespace, and RTF Tag sensitive; see ToLower, TrimString, and StripRTFTags for nodes that give more generous checking rules.

Inputs

Str (String)

The string to search for Substring (String) in.

Substring (String)

The string to be searching for.

Outputs

* (bool)

Whether or not Str (String) contains at least one occurrence of Substring (String).

Examples

an example of using contains to check if the strings test string and test other string contain the string other
An example of using Contains to check if some strings contain the substring "Other"