skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Contains
 

Try Corticon Now

Contains

SYNTAX

<String1>.contains(<String2>)

DESCRIPTION

Evaluates <String1> and returns a value of true if it contains or includes the exact (case-sensitive) characters specified in <String2>.

USAGE RESTRICTIONS

The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions

RULESHEET EXAMPLE 1

The following uses .contains to evaluate whether string1 includes the characters silver and assigns a value to boolean1 for each outcome.

SAMPLE RULETEST 1

A sample Ruletest provides string1 values for three examples. Input and Output panels are shown below. Note case sensitivity in these examples. Posted messages are not shown.