Built-in Foreach Loop Index

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • There doesn't seem to be an option to compare to the index of a specific Foreach loop, like there was with the Foreach Object. Is this even possible? If I want to run a foreach loop for a group of objects, and then nest another loop for that same group, for example.

    EDIT: Is there any real performance difference between the extension and built-in feature? I can think of a few more useful features of the extension anyhow.

    Best person at writing incomprehensible posts. Edits are a regularity.

  • You can retrieve the index of a ForEach loop using this, which is under "count" if you want to use the drop-down menu interface to use it in the future: ForEachLoopIndex( "Active" )

    As for the performance, I personally don't know, though the built-in ones are more likely to get optimization improvements and new features in the future and are less likely to break in non-Windows exporters in any given update (though that being said I don't think the ForEach object has broken in any such update yet, and I find it unlikely that it will).

    Lastly, speaking of which, if you want to request certain features that aren't currently implemented, then you could always go here: Please login to see this link.

    My Please login to see this link. (which I actually use), my Please login to see this link. (which I mostly don't use), and my Please login to see this link. (which I don't use anymore pretty much at all really). If there are awards for "'highest number of long forum posts", then I'd have probably won at least 1 by now. XD

  • I meant specific foreach loop indexes, i.e:

    run loop 1
    on loop 1, run loop 2
    on loop 2, get index of loop 1

    you only have the option to get foreach loop index, but not for specific named loops. I believe that only gets you the index of the currently running loop. if i nest loops for one object i want to be able to get the index of the first loop while on the second loop.

    Best person at writing incomprehensible posts. Edits are a regularity.

  • Ah, I see. How about you use an alterable value in a separate object, then?

    My Please login to see this link. (which I actually use), my Please login to see this link. (which I mostly don't use), and my Please login to see this link. (which I don't use anymore pretty much at all really). If there are awards for "'highest number of long forum posts", then I'd have probably won at least 1 by now. XD

  • You're welcome! It's getting late where I am, I should be heading off now. XD

    My Please login to see this link. (which I actually use), my Please login to see this link. (which I mostly don't use), and my Please login to see this link. (which I don't use anymore pretty much at all really). If there are awards for "'highest number of long forum posts", then I'd have probably won at least 1 by now. XD

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!