Wednesday, September 8, 2010

jBase Command ANDS

Use the ANDS function to create a dynamic array of the logical AND of corresponding elements of two dynamic arrays.
Each element of the new dynamic array is the logical AND of the corresponding elements of array1 and array2. If an element of one dynamic array has no corresponding element in the other dynamic array, it returns a false (0) for that element.
If both corresponding elements of array1 and array2 are null, it returns null for those elements. If one element is the null value and the other is zero or an empty string, it returns false for those elements.

Command Syntax

ANDS (array1, array2)

Example

A = 1:@SM:4:@VM:4:@SM:1
B = 1:@SM:1-1:@VM:2
PRINT ANDS (A,B)

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

0 comments:

Post a Comment

 

Blog Info

A Pakistani Website by Originative Systems

Total Pageviews

Tutorial Jinni Copyright © 2015 WoodMag is Modified by Originative Systems