[alicebot-archcomm] Blank condition values

Noel Bush alicebot-archcomm@list.alicebot.org
20 May 2002 10:54:55 +0400


We have said that the value of the value attribute must be a valid AIML
pattern.  An empty string is not a valid AIML pattern.  So according to
the current specification it is not possible to test for a blank value
in the ways you illustrated.  A valid way could be:

<condition name="color">
  <li value="*">Color is associated with a non-blank value.</li>
  <li>Color is associated with a blank value.</li>
</condition>

On Mon, 2002-05-20 at 00:14, Conan Callen wrote:
> On a condition statement if the value is "" (blank), is it nessessary to include the value="" or can it be left off?
> 
> <condition name="color" value=""> == <condition name="color">
> 
> or 
> 
> <li name="color" value=""> == <li name="color">