skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Equals when using Strings
 

Try Corticon Now

Equals when using Strings

SYNTAX

<String1>.equals(<String2>)

DESCRIPTION

Returns a value of true if <String1> is exactly the same as <String2>, including character case. This is alternative syntax to equals (used as a comparison).

USAGE RESTRICTIONS

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

RULESHEET EXAMPLE

This sample Rulesheet uses .equals to compare the contents of string1 and string2, and assign a value to boolean1 as a result.

SAMPLE RULETEST

A sample Ruletest provides three sets of string1 and string2. Input and Output panels are shown below. Notice how these results differ from those shown in the .equalsIgnoreCase example.