We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Removing list items while iterating/loop

Home Forums General Questions Removing list items while iterating/loop

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #68020
    Crunch
    Customer

    I can do this successfully with straight javascript, but anyone have tips/tricks with just puzzles?

    Eg, I have ‘for each item in list’ with some conditional logic and if a condition is met, I want to remove that item from list while its still iterating.

    #68032
    kdv
    Participant

    Eg, I have ‘for each item in list’

    Hint one: this puzzle won’t do.

    This puzzle can remove items from lists but it requires an index. That loop puzzle can’t provide it.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #68438
    kdv
    Participant

    Nobody wants to help you? :scratch:

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #68566
    bigmike814
    Customer

    KDV, do you have any ideas on this? I would like to cut out the hole on the main and the individual items (studs in my case). I’ve tried manipulating list and can get it working on all but without the refresh. I’m thinking if it is possible, I’ll need something tricky like this.

    https://v3d.net/q02

    What do you think? Is this possible?

    #68585
    kdv
    Participant

    Show your puzzles or zip and upload the app. Actually, I didn’ get the point…

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #68725
    Crunch
    Customer

    a little late KDV but bonus points as that was pretty crafty! :good:

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.