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

Calling reuse() from inside a macro
 
 

Hi,
  I want to write an output macro that does the following:

# open and initialize a topic and run a rule in it

outputmacro: ^OPEN_TOPIC_RUN_RULE(^topic_name ^rule_name)

 
^enable(topic ^topic_name) ^reset(topic ^topic_name)
 ^
reuse(^topic_name.^rule_name) ^END(INPUT)

The problem is I can’t figure out the syntax for the topic_name.rule_name part:

^reuse(^topic_name.^rule_name)

Any help would be appreciated.

 

 

 
  [ # 1 ]

$$tmp = ^join(^topic_name . ^rule_name)
^reuse($$tmp)

 

 
  [ # 2 ]

That did the trick. Thank you Bruce.

 

 
  login or register to react
‹‹ Homophones in ChatScript      unknown-word ››