PLUS+1 User Forum

PLUS+1 Tools => PLUS+1 GUIDE => Topic started by: zmcddn on June 04, 2014, 11:18:47 PM

Title: Array element manipulation
Post by: zmcddn on June 04, 2014, 11:18:47 PM
Hi,

I have encountered a problem with array. Basically I would like to extract all the non-zero element from an array and save it to another array.
I had tried a couple of my thoughts but they didn't work. If I use "array element not equal to zero" as trigger for saving the value to the second array, than it wouldn't work two consecutive non-zero element. So could anyone help me with this logic please?

By the way I am also wondering how does the "array length" work? Because we always have to initialize the array first, and the "array length" function cannot detect the actual array length.

Thanks a lot.