programming question, would like to know max value of variable when its pair is positive
I have a programming question that I've been unable to solve.
I have a string of paired variable outputs, x and y. I would like to know what the programming lines would look like to compute the max value of x when y is positive.
At some point in the string, y goes from positive to negative, while x continues to grow. Again, I'm interested in the max value for x while y is still positive.
Thank you in advance for your assistance.
Sincererly,
Josh

