Skip to content

Can't access to the variable in object macro after just defining the variable #137

@ghost

Description

# in python

> object tempCall python
   return 'right'
< object

< object test python

   temp_query = rs.get_uservar(rs.current_user(),"temp_query")
   print(temp_query)

> object

# in rivescript

+ xyz (x|y|z)
- <set temp_query=answer is <call>tempCall <star></call>
^ <call>test</call>

Output:
answer is {_call_}tempCall x{_call_}

I was hoping for 'answer is right' as an output.

How do I make it work? Am I missing something? Please guide me. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions