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

Capturing macro responses in % #322

Open
hark444 opened this issue Sep 9, 2019 · 2 comments
Open

Capturing macro responses in % #322

hark444 opened this issue Sep 9, 2019 · 2 comments

Comments

@hark444
Copy link

hark444 commented Sep 9, 2019

Capture macro response in previous(%) commands.
Can someone help me out in this.?

Rivescript Playground session: https://play.rivescript.com/s/tMGU7WYB1m

image

@kirsle
Copy link
Member

kirsle commented Sep 9, 2019

The <call> tag is always the last one processed and its output can't mix with other tags.

As an alternative, try setting the user variable inside the object macro.

> object test javascript
    rs.setUservar( rs.currentUser(), "rivescript");
< object

@hark444
Copy link
Author

hark444 commented Sep 10, 2019

Hey Kirsle,

Thanks for the help.

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