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

Macros within conditionals #37

Closed
meowgorithm opened this issue Oct 12, 2017 · 2 comments
Closed

Macros within conditionals #37

meowgorithm opened this issue Oct 12, 2017 · 2 comments

Comments

@meowgorithm
Copy link
Contributor

Should macros execute and return before a conditional is evaluated? Currently, in a case such as this…

+ my name is *
* <call>isHisNameFrank <star></call> == true => Welcome, Frank.
- You’re not Frank. Go find Frank.

…it appears that the macro not being called at all.

An issue in the JavaScript RiveScript project makes me think the expected behavior is that macros should indeed execute before the conditional is evaluated.

@kirsle
Copy link
Member

kirsle commented Oct 12, 2017 via email

@meowgorithm
Copy link
Contributor Author

Gah, my mistake indeed. Verified that this works as intended.

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

2 participants