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..

Wildcards, patternmacro & eval
 
 

Hi,

I have the following script:

concept: ~c [ c1 c2 ]
patternmacro: ^pm()
      _[
      (~c ^eval($type = c))
      ]

TOPIC: ~test keep repeat [ test ]

u: (test * ^pm()) Matching

u: (a ^pm() * test) Matching

And the results are:
test c1 => Matching
test a c1 => Not matching the rule
a c1 test => Matching
a c1 of test => Matching.

Is there a problem when you use a patternmacro which contains eval and is preceded by a wildcard?

 

 
  login or register to react