I need help on converting these blocks into code and make it possible to be flexible/reusable ( changing conditions and statements )
I’ve been trying to convert this but I kept on going to circles @_@

Maybe have ICheckable (an Interface with a bool Check()) and IDoable (an Interface with a void Do()) and then a Transition class that first checks if the Checkable is true, and if so, do the doable in the true slot, else, do the doable in the false slot.