How to make a [for (int i = 0; i < max); i++)] construction?
I'm trying to make a loop, where "i" (counter) will be an integer variable.
So, I've initialized a variable (max_anount_of_rangs):
Created "Apply for each" action:
And I have an error:
The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@variables('max_amount_of_rangs')' is of type 'Integer'. The result must be a valid array.
Is it possible somehow to do this action without an array?