Solved
find last value in a vector greater than 0
Hello,
I have to find the last value from a vector which is bigger from 0, as in the attached example. How can it be determined?
Thank you,
Otilia
Hello,
I have to find the last value from a vector which is bigger from 0, as in the attached example. How can it be determined?
Thank you,
Otilia
There are many ways to skin a cat.
Here are a few alternatives but I'd stay with Luc's approach, maybe adding some error check as shown in variant 3.
Variant 4 is a classic programming approach.

Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.