How to add guards for the transitions/events


Is it possible to add guards to transitions/events directly inside Sketch ?


Hi @jeremyfourna,

Guards and transition functions raise a ton of questions about supporting data/variables and programming more generally, so we’re not supporting them yet.

If you do want to program, you can export your sketch to use with xstate javascript library.

Also take a look at for statechart libraries in C / C++.