Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?

EQS

Description

The function is used to test if elements of one dynamic array are equal to the elements of another dynamic array. The general form is as:

EQS(array1, array2)

Where Array1 and Array2 are both dynamic arrays.

Note:

EQS compares each element of the first array with the corresponding element of the second array, returning a one if the two elements are equal in the corresponding element of a dynamic array. It returns a zero if the two elements are not equal. It returns zero if an element of one dynamic array has no corresponding element in the other dynamic array. If either element of a corresponding pair is null, it returns null for that element. 

An example of use is as:

Arr1=1:@VM:45:@SM:3:@VM:"one"
Arr2=0:@VM:45:@VM:1
PRINT EQS(Arr1 ,Arr2)

The output of this program is: 0]1\0]0


Back to JBASE BASIC.

Was this article helpful?