The condition tag is the most difficult tag IMHO to
implement in an interpreter and easiest to break
across interpreter versions.
You almost _always_ have AIML tag implementation
differences between interpreters, regardless, but more
than usual is the condition tag.
Which AIML interpreter are you using and what is the
version of it?
Also, for what you're trying to achieve is it possible
to avoid the condition tag and simplify your AIML just
by using SRAI directly?
For example:
<category>
<pattern>98</pattern>
<srai><that/></srai>
</category>
<category>
<pattern>* PODER CONTINUAR</pattern>
<srai>COMENZAROE</srai>
</condition>
<category>
<pattern>* HAYA HECHO</pattern>
<srai>OEAC</srai>2
</condition>
<category>
<pattern>* ESTE LISTO</pattern>
<srai>OENM</srai>3
</condition>
</template>
</category>
If you don't want your end user to be able to directly
call those 3 pattern's directly and you want to only
be able to call them from pattern 98 you might be able
to use the <topic> tags to protect them and (re)set
the topic using <set>. That is, if your interpreter
has that implemented to allow that :-D
If it doesn't, you can always use poor man's method of
topics by putting in front some specific characters
that aren't likely to be called by your end user. For
example, two "z"'s as below so only pattern 98 is
likely to call those patterns:
<category>
<pattern>98</pattern>
<srai>ZZ <that/></srai>
</category>
<category>
<pattern>ZZ * PODER CONTINUAR</pattern>
<srai>COMENZAROE</srai>
</condition>
<category>
<pattern>ZZ * HAYA HECHO</pattern>
<srai>OEAC</srai>2
</condition>
<category>
<pattern>ZZ * ESTE LISTO</pattern>
<srai>OENM</srai>3
</condition>
</template>
</category>
Hope this helps!
--- superantonio <
superantonioxp@...> wrote:
>
> I'm trying to make several paths using the condition
> tag because it is
> possible to get the same answer and I want to
> redirect depends of the last
> words of the that value
>
> I have this, but I cant get any positive results
>
> <category>
> <pattern>98</pattern>
>
> <template>
> <think><set
> name="ultimas2Palabras"><that/></set></think>
> <condition name="ultimas2Palabras" value="* PODER
> CONTINUAR"><srai>COMENZAROE</srai></condition>
> <condition name="ultimas2Palabras" value="* HAYA
> HECHO"><srai>OEAC</srai>2</condition>
> <condition name="ultimas2Palabras" value="* ESTE
> LISTO"><srai>OENM</srai>3</condition>
> almacenado <get name="ultimas2Palabras"/>
> </template>
> </category>
>
> --
> View this message in context:
>
http://www.nabble.com/including-a-SRAI-tag-in-to-condition-tags-tf4656081.html#a13304084> Sent from the Alicebot General mailing list archive
> at Nabble.com.
>
> _______________________________________________
> 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/>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
This is the alicebot-general mailing list
Reply to
alicebot-general@...
Unsubscribe and change preferences at
http://list.alicebot.org/mailman/listinfo/alicebot-generalLearn netiquette at
http://www.dtcc.edu/cs/rfc1855.htmlLearn to read at
http://www.literacy.org/