Error getting tags :
error 404Error getting tags :
error 404 = | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Expander triangle

value1 = value2

Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
None required
Compares two values and evaluates to true if they are equal, false if they are not equal.

1 = 0 -- evaluates to false
17 + 9 = 26 -- evaluates to true
"ABC" = "abc" -- true if and only if caseSensitive is false

Additional Comments
Expander triangle

Use the = (equality) operator to find out whether two numeric expressions yield the same number or whether two strings are equivalent.


The operands value1 and value2 can be numbers, literal strings of characters (delimited with double quotes), or any sources of value, including arrays.


When comparing strings, the = operator compares the two values character by character. If the caseSensitive property is true, the comparison between two strings treats uppercase letters as coming before lowercase letters. If the caseSensitive property is false, the comparison is not case-sensitive, so "a" = "A".

When comparing arrays, the = operator first checks if the number of elements in each array is the same, if not the two arrays are different. If the arrays have the same number of elements, they are equal if each element is equal. Specifically this means:

array1 = array2 if (and only if):

- the number of elements of array1 = the number of elements of array2 and

- for each element e in array1, array1[e] = array2[e].

Note that if an array is compared with a string, the array will first be converted into the empty string, thus any array is always equal to the empty string, and not equal to any other string.

Changes to Revolution:

The ability to compare two arrays using = was added in version 3.5. Previously, comparing two arrays would have converted both arrays into the empty string, and always returned true.

User Comments
Expander triangle