Equals when used as a comparison
- Last Updated: December 9, 2022
- 1 minute read
- Corticon.js
- Documentation
SYNTAX
| Boolean | <Expression1> =
<Expression2> |
| DateTime | <DateTime1> =
<DateTime2>
|
| Number | <Number1> =
<Number2> |
| String | <String1> =
<String2> |
| Boolean | Returns a value of true if <Expression1> is the same as <Expression2>. |
| DateTime | Returns a value of true if <DateTime1> is the same as <DateTime2>, including both the Date and the Time
portions |
| Number | Returns a value of true if <Number1> is the same as <Number2>. Different numeric data types may be
compared in the same expression. |
| String | Returns a value of true if <String1> is the same as <String2>. Both case and length are examined to
determine equality. Corticon.js Studio uses the ISO character precedence in comparing String
values.
|
*includes DateTime and Date data types
USAGE RESTRICTIONS
The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.
The following Rulesheet uses equals to Ruletest whetherdecimal1 equals decimal2, and assign a value
to string1 based on the result of the comparison.
A sample Ruletest provides two examples. Input and Output panels are shown below: