Reply To: Unexpected behavior with "Iterate" component

Forums 💬 NodeCanvas 🗨️ General Discussion Unexpected behavior with "Iterate" component Reply To: Unexpected behavior with "Iterate" component

#14011
ehrlichmann
Participant

    Hello.

    Thanks for your reply. I managed to solve the issue last week. You see, the iterator was working fine if i ran it just once, however, i was runing it inside a repeater. For some odd reason whenever the sequence started again, the iterator would not start from the begining of the list but from the end, giving me the issue i reported.

    I solved it by adding this line:

    currentIndex = 0;

    into the source code into the line 74 (see image), and it seemed to solve the issue without affecting the functioning of the iterator node.

    I’ll let you know if something else comes up, but so far, so good.

    Thanks for your help.

    Regards.

    PS: added a second image where i show you how the BT ended up after a revision.