Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples of conditions and conditional transitions #39

Open
stappersg opened this issue Aug 24, 2018 · 0 comments
Open

Examples of conditions and conditional transitions #39

stappersg opened this issue Aug 24, 2018 · 0 comments

Comments

@stappersg
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant