I am aware of how to use for each loop and did POC and it is working fine. But I have a request where I need to use For loop instead of For each.
Business case: Need to create task dynamically based on user input. Reason: Some teams uses Multiple maven task in their projects. I have a centralised Template which will create task based on user input for the no. of maven they need in their pipeline.
Example ${{for i=1; i<= n; i++}} -task: maven@5 pompath: ${pomxmlpath}
When n = 5 it has to create 5 maven task in the azure pipeline.