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:
http://dynamobim.org/forums/topic/the-misterious-loopwhile-node/

Python’s loop methods:
https://wiki.python.org/moin/ForLoop

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

image

Hard to be sure with the provided information tho.

1 Like

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)
}
else
{
//do something else
}
};