You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to separate the content from star1 and star2 in args?
> object test_case python
return str(args)
< object
+ do you know (my way|your way) of doing *
- <call>test_case <star1> <star2></call>
Question: Do you know my way of doing computer programming?
Answer: [‘my’, ‘way’, ‘computer’, ‘programming’]
If the answer is no, I propose an enhancement by creating args1, args2…, like in other parts of Rivescript.
Then the code would be something like:
> object test_case python
if ' '.join(args1) == 'my way':
return 'Of course not, it is your way of doing ' + ' '.join(args2)
# your way
else:
return 'Another crazy answer..'
< object
Answer: Of course not, it is your way of doing computer programming.
The text was updated successfully, but these errors were encountered:
Is there a way to separate the content from star1 and star2 in args?
Question: Do you know my way of doing computer programming?
Answer: [‘my’, ‘way’, ‘computer’, ‘programming’]
If the answer is no, I propose an enhancement by creating args1, args2…, like in other parts of Rivescript.
Then the code would be something like:
Answer: Of course not, it is your way of doing computer programming.
The text was updated successfully, but these errors were encountered: