Equals when using Strings
- Last Updated: March 24, 2022
- 1 minute read
- Corticon
- Version 6.3
- Documentation
SYNTAX
<String1>.equals(<String2>)
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 ofstring1 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.