Named "For Each Object" loop

For questions about using Classic.

Post » Fri Aug 10, 2012 1:45 pm

Just a small issue - does anyone know of a way to have a loop that functions like "For Each Object", but is named so I can, for example, check its index from a nested loop?
Right now I'm using the System\For Each Object condition with a PV which gets incremented at index progression, but I'd rather do without the PV, if possible.

Thanks.
B
8
S
2
G
2
Posts: 85
Reputation: 1,218

Post » Fri Aug 10, 2012 2:29 pm

Didn't test it, but from my head: How about "For each object (ordered)"? Ordered by oid ascending.

But I'm not sure if oid always starts at 1.
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Sat Aug 11, 2012 10:30 am

Ah, yes, you are right. I completely forgot that OIDs and the For Each Object action both work by creation order. Thank you.
B
8
S
2
G
2
Posts: 85
Reputation: 1,218


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests