Declare a variable in FEEL

I am trying to declare a variable in a script task using feel expression to use it as a counter in a loop, is there a way to do that?

Hi @Abrar_Madi - are you trying to use that variable in a FEEL loop inside the script task? Or are you trying to define a variable to be used as a counter with a multi-instance marker? At a minimum you can use an output mapping to create a new process variable.

Thanks Nathan. Yes, I am trying to use it as a counter variable in a FEEL loop in a script task