SYNTAX

<String1>.contains(<String2>)

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

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

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

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.