hello sorry for my bad english
i am trying to let my bot search for a word or a number to see if there is a mach in a list…..
<category>
< pattern >is there * in my list</pattern>
<think><set name=“x”></set></think>
<template>give me the list….</template>
</category>
<category>
< pattern >the list is *</pattern>
<that>give my the list.</that>
<template><condition name=“x”>
<li name=“x”>yes there is </li>
<li name=“x *”>yes there is </li>
<li name=”* x”>yes there is </li>
<li name=”* x *”>yes there is </li>
<li>no there is not</li>
</condition></template>
</category>
[/li][/ul]
can somebody help me with the aiml file?
i started from this example
<category>
< pattern >DOES my list CONTAIN 1 *</pattern>
<template><think><set name=“compare”><star></set></think>
<condition name=“compare”>
<li value=“1”>Yes, i have found it.</li>
<li value=“1 *”>Yes,i have found it.</li>
<li value=”* 1”>Yes,i have found it.</li>
<li value=”* 1 *”>Yes,i have found it.</li>
<li>No. Your input didn’t have 1 in it.</li>
</condition></template>
</category>
this works however the bot search only for value 1 Obviously….