for loop with skipped values
Posted: Thu Oct 21, 2021 10:26 am
Hello,
I am wandering if there is a possibility of executing a for loop by skipping some values.
For example, I have 100 variables v1, v2,...v100 and I want to set them all to zero except v52 and v80. Is there a way of doing this within a "restricted" for loop?
Thank you
I am wandering if there is a possibility of executing a for loop by skipping some values.
For example, I have 100 variables v1, v2,...v100 and I want to set them all to zero except v52 and v80. Is there a way of doing this within a "restricted" for loop?
Thank you