AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

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