[alicebot-style] Problem with get and pattern
Alessandro Boca
a.boca at yahoo.it
Mon Mar 13 13:16:07 PST 2006
Hi everybody,
I'm working on a project using AIML and I've got a problem with get and pattern.
What I would like to do is to set a predicate and after that try to match his value in a <pattern>, using a <get> element; like the example below:
<category>
<pattern>Set X to *</pattern>
<template>
<think><set name="x"><star/></set></think>
</template>
</category>
<category>
<pattern><get name="x"/></pattern>
<template>This is the value of X</template>
</category>
This example doesn't work because I think that you can't put a get element into a pattern, don't you?
Do you think that there is a way to make it work?
Or maybe, is there a different approach to work it out?
Thank you for your help.
Bye.
Ale
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://list.alicebot.org/pipermail/alicebot-style/attachments/20060313/1bf12a55/attachment.html
More information about the alicebot-style
mailing list