« Return to Thread: Math.aiml

Re: Math.aiml

by R. Vince :: Rate this Message:

Reply to Author | View in Thread

I believe this would work for this particular catagory:

<category>
<pattern>* POINT *</pattern>
<template>
<template><think><set name="num1"><star/></set> <set
name="number2"><person><star index="2"/></person></set></think>
<script language="JavaScript">
var result = parseFloat(String(<get name="num1"/>) + '.' + String(<get
name="number2"/>));
document.write(result);</script>
</template>
</category>

-Ralph



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.6.1/343 - Release Date: 5/18/2006

_______________________________________________
This is the alicebot-general mailing list
Reply to alicebot-general@...
Unsubscribe and change preferences at http://list.alicebot.org/mailman/listinfo/alicebot-general
Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
Learn to read at http://www.literacy.org/

 « Return to Thread: Math.aiml