I'm adding items into a list using a loop, but in some cases a condition is met inside this loop that should skip that element into adding it to the list. How can this be done in AN? I've tried the loop break output but that just stops the iteration completely. I checked some python expressions and tried the passstatement but I keep getting syntax errors.

Any help? thanks


The generator node have a hidden Condition input that allows one to skip appending at a certain execution. See example 4 in the documentation.

Node Tree

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.