Linda.
Yes, you cannot subtract one array from another. The idea itself makes no sense, at least to me.
If you have elements of an array that you want to subtract from the elements of another array, I would break out that data of each with the "combine" command, do the math, and then restore the data back into an array with "split". The arrays do not have to be of the same "size".
You could also do it by successively extracting elements of one array and doing the math on the corresponding element of the other array directly:
Code: Select all
put array1["x"] - array2["y"] into array1["x"]
That is a matter of style. In that case, again, everything would be under script control, and the two arrays do not have to be of the same size.
You could write a simple function to do any of that. But it would only automate what I suggested above.
Craig