Consecutive expressions inside a same Script task

Certified Senior Developer

Hi,

I've read that input ou output expressions inside a script tasks are not consecutives,

and the fact that Developer must not count on this.

If I have to create and use a custom counter, and then get a CDT value from this array at the index counter,

is there a way to do it from the same Script Task or I'm obligated to use 2 consecutive script tasks ?

Ex : 

- pv!counter  = myCounter +1

- pv!data = index(pv!myData, pv!counter, null)

  Discussion posts and replies are publicly visible