this one might be better answered by @ady624 because it goes to the thought process behind how webcore is designed. i will take a crack at how i perceived this as i got started with webcore … I am sure @ady624 will jump in if he wants to add anything.
its about understanding user intent when they are coding a piston. say the default behavior was:
- if in a IF clause there are both conditions and triggers, only the triggers are subscribed to for that IF clause.
AND - if in a IF clause there are only conditions, all the conditions are subscribed.
now, on a per IF basis the user will need to evaluate as they code the piston, if this IF is subscribed to any events. if you consider that this evaluation by the user would not only be for IFs but anywhere conditions are allowed like WHILE or DO … WHILE etc, it can get it a little overwhelming for users who are just getting started and not yet familiar with webcore logic. i know it did for me.
to get started its much simpler for user to get started with:
- if you have all conditions in a piston all conditions will be subscribed to
or - if you have any triggers in a piston only the triggers will be subscribed to and not the conditions
once users get started and are used to webcore … they also find out how to override this default behavior and force a condition to subscribe even when there are triggers in a piston or force a trigger to not subscribe even when there are one or more triggers in that piston.