On function FUNCTION 1
subevent: Array -- For each X element
subevent: System -- Array.CurValue > 0 Action: Add Array.CurValue to globalvariable
subevent: Empty Action: Call FUNCTION 2
The for each X element event is not completely finishing before calling Function 2. I am not sure what condition to use to prevent this from happening.
I have tried an else event but that did not work.
Note: the values in the array are unpredictable.