ADDS Function
Adds the elements in two dynamic arrays.
Syntax
ADDS(dynArray1, dynArray2)
Syntax Elements
dynArray1, dynArray2
DataBasic expressions
that evaluate to dynamic arrays.
Return Value
A dynamic array formed by combining dynArray1 and dynArray2. Each element contains the result of adding the corresponding elements in the original arrays.
Note
-
Missing or null elements in the original arrays are treated as 0.
-
Non-numeric elements are treated as 0 and a run-time error is generated (see Strings in Arithmetic Expressions).
Example
ARY1 = 1:@AM:2:@AM:7
ARY2 = 1:@AM:1
NEWARY = ADDS(ARY1, ARY2)
Sets NEWARY to "2AM3AM7". The missing third element in ARY2 is treated as 0, so the third element in the result is 7.