Page 1 of 1

Previous item in logic

Posted: October 23rd, 2018, 10:38 am
by htuser
Dear all,
I would like to know if there's a way to use -1 to access to a previous item. By example,
PROC ED1_ENERGIE_UTILISEE
PROC ED1_1_AUTRE_ENERGIE_UTILISEE

Can i use (PROC ED1_1_AUTRE_ENERGIE_UTILISEE -1) to access to previous the item or there's another way in Cspro logic?
Best Regards,

Re: Previous item in logic

Posted: October 23rd, 2018, 12:57 pm
by Gregory Martin
There isn't a way to do this with the current set of logic functions. What kind of processing are you doing where this would be useful?

Re: Previous item in logic

Posted: October 23rd, 2018, 1:20 pm
by htuser
Hi Greg,
Thank you for this incredible support to Csprousers. Having a way to do this would facilitate us to have more dynamic and reusable logic and functions.
By example, in managing OTHERS who naturally always depend on the previous item. So do similar linked questions.

More would be done in facilitate logic based on n-item or item-1.
Does it very clear for you?