Equals when using Strings
- Last Updated: August 14, 2020
- 1 minute read
- Corticon.js
- Documentation
SYNTAX
<String1>.equals(<String2>)
String1String2>, including character case. This is
alternative syntax to > is exactly the same as
<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.