How to add guards for the transitions/events


#1

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


#2

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 https://www.state-machine.com/ for statechart libraries in C / C++.