Hi @ihortom
Thanks a lot for this, it’s almost what I want.
For clarity, I try to retrieve the output of the N-1 item as processed by the loop, not as it enters the loop. Thus, if I use the output of the loop node, it does not quite work as I intended.
Please find here a minimal workflow to show where I am stuck:
The expression I am trying to use is as follows:
{{ $runIndex = 1 ? $('test').first(0, $runIndex - 1).json.text : '' }}
How can I reference to the output of a node inside the loop without triggering the error below?
Referenced node is unexecuted
An expression references the node ‘section_generate’, but it hasn’t been executed yet. Either change the expression, or re-wire your workflow to make sure that node executes first.
I understand from @barn4k’s answer, on another post, that it’s unavoidable behavior at this stage
But I cannot figure out an alternative workflow for my needs.
Thank you very much for your help
Cheers