Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
RealityV15.1Online Documentation (MoTW) Revision 7
LES Function (DataBasic) (m618703+les_f.htm)
Compares the elements in two dynamic arrays.
LES(dynArray1, dynArray2)
dynArray1, dynArray2
DataBasic expressions
that evaluate to dynamic arrays.
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 element in dynArray1 is less than or equal to that in dynArray2, 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.
EQS function, NES function, GES function.
ARY1 = 1:@VM:0:@VM:-1:@AM:"Fred":@VM:"Fred":@VM:"Bert" ARY2 = 0:@VM:0:@VM:0:@AM:"Fred":@VM:"Bert":@VM:"Fred" NEWARY = LES(ARY1, ARY2)
Sets NEWARY to "0VM1VM1AM1VM0VM1".