fysom icon indicating copy to clipboard operation
fysom copied to clipboard

Examples of conditions and conditional transitions

Open stappersg opened this issue 7 years ago • 0 comments

The usage example of FysomGlobalMixin and FysomGlobal has

                    'name': 'panic',
                    'src': ['green', 'yellow'],
                    'dst': 'red',
                    'cond': [  # can be function object or method name
                        'is_angry',  # by default target is "True"
                        {True: 'is_very_angry', 'else': 'yellow'}
                    ]

I don't understand how to set conditions nor how to do a condtional transition. Please extend the example with such use case.

stappersg avatar Aug 24 '18 15:08 stappersg