Looping Immediately to next index



is there a way to loop to the next index immediately after a condition is met?


Yes, but it’d help to have more info on what you’re after in order to guide you on how to do this. For now you can look into the following:

Dynamo’s Loop While Methods:

Python’s loop methods:


It kinda sounds like you want to use the continue keyword:


Hard to be sure with the provided information tho.


my code is basically this

while (ind < cntBP)
if (VolumesEqual == true)
ReturnList[ind] = ReturnList0;
(this is where i want to jump to the next ind)
//do something else