set

The set element instructs the AIML interpreter to set the
value of a predicate to the result of processing the contents of the set
element. The set element has a required attribute name, which must be a
valid AIML predicate name. If the predicate has not yet been defined, the
AIML interpreter should define it in memory.

Element Information

Model

star | that | input | thatstar | topicstar | get | bot | sr | date | id | size | version | uppercase | lowercase | formal | sentence | condition | random | set | gossip | srai | person | person2 | gender | think | learn | system | javascript | ANY element from ANY namespace OTHER than 'No Namespace'

Attributes

QName Type Fixed Default Use Inheritable Annotation
name PredicateName optional

Source

<xs:element name="set">
  <xs:annotation>
    <xs:documentation>The set element instructs the AIML interpreter to set the value of a predicate to the result of processing the contents of the set element. The set element has a required attribute name, which must be a valid AIML predicate name. If the predicate has not yet been defined, the AIML interpreter should define it in memory.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:complexContent>
      <xs:extension base="MixedTemplateContentContainer">
        <xs:attribute name="name" type="PredicateName"/>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
</xs:element>

Sample