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

How to write complicated conditions? #125

Open
KuribohG opened this issue Apr 2, 2020 · 0 comments
Open

How to write complicated conditions? #125

KuribohG opened this issue Apr 2, 2020 · 0 comments

Comments

@KuribohG
Copy link

KuribohG commented Apr 2, 2020

Suppose I want to write a script in OnUpdate event like:
if ((a && b) || (c && (d || e))) action();

In GameFlow, all what we can do is to AND or OR two conditions. But when we have more than two conditions, the operator priority is unclear.

So I think there should be conditions like AND condition or OR condition. For example, an And condition will receive two conditions as inputs, and its output will be the logical AND of these two inputs.

Or maybe I can implement this by myself, but I cannot get a evaluated boolean value for condition, since its OnEvaluate is a protected function.

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