Change looping event types (foreach, repeat, while) to start with an indented subevent #3649
Replies: 4 comments
-
Almost a year later, and I still never put anything in that top event. :) (Thanks for converting this to a discussion) |
Beta Was this translation helpful? Give feedback.
-
I had a few issues with "for each" loops at the beginning (also with the common 'trigger once inside loops' issue) but after I learned how to handle them I realized that the best way of having multiple loops is to have sub events for one loop instead of multiple loops. Long story short: I totally agree that this should be turned into a feature as soon as possible so users - doesn't matter if beginner, intermediate or expert - first of all can't get the chance to be confused about the event type and how to use it most efficiently but this change can also save time when creating loops (I should definitely map my key shortcuts a little better for my personal workflow) but adding sub events always takes a couple seconds. |
Beta Was this translation helpful? Give feedback.
-
This is still something that should be implemented. Here is an example where the user expected the last event to be part of the while loop. |
Beta Was this translation helpful? Give feedback.
-
Instead of auto-indenting that part, which would probably look like a weird forced subevent, what about fully removing the standard action/condition part of non-standard events? That way, we can get rid of the maintenance burden that is to have a lot of similar events code generation in many events, and force the users to put the loops' bodies as subevents getting rid of all ambiguity. For the while condition, the looping condition is a part of the loop declaration itself, not of the loop body, and isn't comprised of subevents, only conditions, so I would not indent it. IMO that would bring more confusion than it would clarify anything. |
Beta Was this translation helpful? Give feedback.
-
Description
New users often make a mistake when using ForEach events. They do one of two things:
Solution suggested
Automatically indent the first event below all looping event types (foreach, repeat, while) so that is obvious to users what is included in the loop. Users can create new events below the included event, and those events will be part of the loop.
Beta Was this translation helpful? Give feedback.
All reactions