AI Zone Admin Forum Add your forum

Chatbot Conference London On Oct 3th Erwin will be moderating on the Chatbots conference in London. Why don't you meet him there? As a Chatbots.org visitor, you'll get a discount as well: Why don't we meet there? get a discount

We do experience some trouble with our forms and some details page. We'll fix this ASAP. Sorry for the inconvenience!
Compare multiple words concept with user input
 
 

I’m not being able to compare a user input with a multiple word input after the match is successful.

this is how I am doing it:

concept: ~test [two_word]

topic: ~testTopic [test]

u: (test _~test)
  ^some_macro(‘_0)


and then:

outputmacro: some_macro(^test)
{
if(^test?~test){
good
}else{
bad
}
}

if i input ‘test two word’ it matches with the rule, but then responds bad.

I’d like to know how to fix this.

Thank you

 

 
  [ # 1 ]

BUMP

 

 
  [ # 2 ]

Your example worked for me. Of course I changed your ’ which is curly quote and added ^ in front of outputmacro. Have no idea if that matters. Here is my code:
outputmacro: ^some_macro(^test)
if(^test?~test){
good
}else{
bad
}
concept: ~test [two_word]

topic: ~INTRODUCTIONS keep repeat (~emogoodbye ~emohello ~emohowzit name here )

t: Greetings ^keep()
u: (test _~test)
  ^some_macro(‘_0)

 

 
  [ # 3 ]

make sure you are running latest CS release

 

 
  login or register to react