[pandorabots-general] [SPAM] Re: How to match in topic

Daniel Springwald daniel at springwald.de
Sat Feb 3 02:18:17 PST 2007


Hi there,

Have a look at
http://www.alicebot.org/documentation/aiml-reference.html#if

Or try the condition tag instead:
http://www.alicebot.org/documentation/aiml-reference.html#condition

Best regards,
Daniel Springwald 


-----Ursprüngliche Nachricht-----
Von: pandorabots-general-bounces+daniel=springwald.de at list.pandorabots.com
[mailto:pandorabots-general-bounces+daniel=springwald.de at list.pandorabots.co
m] Im Auftrag von GT40
Gesendet: Freitag, 2. Februar 2007 16:25
An: pandorabots-general at list.pandorabots.com
Betreff: [SPAM] Re: [pandorabots-general] How to match in topic



Hi Chris!

I'm also a newbie in AIML, but I'm not sure we're allowed to use the if/then
instruction inside template tags (or maybe in an embedded script?).
 
I tried the following lines on a bot of mine and it seems to work.


<category>
<pattern>I WOULD LIKE TO KNOW ABOUT *</pattern>
<template>
Sure, what would like to know about <star />?
<think><set name="topic"><star /></set></think>
</template>
</category>

<topic name="MONEY">

<category>
<pattern>MANY THINGS</pattern>
<template>Are you rich?</template>
</category>

</topic>

<topic name="CARS">

<category>
<pattern>MANY THINGS</pattern>
<template>Do you know the Ford GT40?</template>
</category>

</topic>

<topic name="MADONNA">

<category>
<pattern>MANY THINGS</pattern>
<template>Do you like "Hollywood"?</template>
</category>

</topic>


Maybe you could improve this.
-- 
View this message in context:
http://www.nabble.com/How-to-match-in-topic-tf3157243.html#a8768917
Sent from the Pandorabots-general mailing list archive at Nabble.com.

_______________________________________________
This is the pandorabots-general mailing list
To Post, reply to pandorabots-general at list.pandorabots.com
Unsubscribe and change preferences at
http://list.pandorabots.com/mailman/listinfo/pandorabots-general
Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
Learn to read at http://www.literacy.org/






More information about the pandorabots-general mailing list