How to get SplitInBateches node currentRunIndex?

How to get SplitInBateches nodes currentRunIndex into Function node? I have tried as follows, but it is not working. Please help me…

 var d = $node["SplitInBatches"].context["currentRunIndex"];

Found the solution thanks.

That’s amazing! Can you share the solution so that others can also benefit? :slightly_smiling_face:

1 Like

We should use $runIndex instead of

$node["SplitInBatches"].context["currentRunIndex"];
2 Likes