Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Is there a callback for rules not meeting conditions?

Willian_Z
Level 1
Level 1

Hello all!

 

I have a specific rule in my implementation with a "max frequency" type of condition (once per session). It works well, but I need to do some custom code in case the conditions are not met (event triggered but not fired because of this condition). I've thought about doing a "counter rule" (that means with the reversed condition - always fire except for the first time in session), but I  was wondering if there was another way to do it, a more practical way if I need to do this in other rules as well (without having to duplicate them all), like a callback (something in the sorts of s.registerPostTrackCallback like _satellite.ruleConditionNotMetCallback) or a fallback (if(condition) => actions, else => fallback)

 

Any solutions, suggestions, ideas?

1 Reply
yuhuisg
Community Advisor
Community Advisor

As far as I know, Launch doesn't have any "callback" functionality anywhere. I think most of us use "counter rules", as you've called them.