SYNTAX

<String1>.equals(<String2>)

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.

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

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.