I have a case where my loop has to start from 1 and end at 5, in between if some condition is matched i have to stop the loop(for).
for i in range(1,5) is the syntax i want the same kind of stuff to be implemented here.
I try with the following
- While and Do while. But i can’t able to stop the loop because Break works only with For Each
- https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.range?view=netframework-4.7.2 with dot net function i try to populate it but still i can’t able to do it.
Thanks in Advance