NES Function
Compares the elements in two dynamic arrays for inequality.
Syntax
NES(dynArray1, dynArray2)
Syntax Elements
dynArray1, dynArray2
DataBasic expressions
that evaluate to dynamic arrays.
Return Value
A dynamic array with a structure formed by combining dynArray1 and dynArray2. Each element contains the result of comparing the corresponding elements in the original arrays. If the elements are the different, the element is set to 1 (true); otherwise it is set to 0 (false).
-
Elements are compared character by character from left to right. Characters are compared by ASCII value (see Decimal, Hexadecimal, and ASCII Table).
Note
If the case-insensitive option is specified or data case insensitive mode is selected (see Case Sensitivity), case is ignored when comparing characters.
-
If the strings are of different lengths and each character in the shorter string matches the character at the same position in the other, the longer string is considered the greater.
-
Numeric values are treated as strings.
-
Non-existent elements are treated as empty strings.
See Also
EQS function, GES function, LES function.
Example
ARY1 = 1:@VM:1:@AM:"Fred":@VM:"Fred" ARY2 = 1:@VM:0:@AM:"Fred":@VM:"Bert" NEWARY = NES(ARY1, ARY2)
Sets NEWARY to "0VM1AM0VM1".