CLIPS multislot $

broken image
broken image

In deftemplate may be specified a type of value.įor numbers it is possible to define a range, for example (range 1900 2009) means years between 19. In a deftemplate, the attribute values may be specified more precisely than a simple value. note that a multi-slot slot with one value is strictly not the same as a single-slot slot. To write a slot, give the field name (attribute) followed by the field value. A single-slot contain exactly one field while a multi-slot contains zero or more fields. Deftemplate allows access by name rather than by specifying the order of fields.Ī slot is a named single-slot or multi-slot. A deftemplate is a list of fields names slots. It defines a grup of related fields in a pattern similar to the way in which a C struct is a group of related data. This feature can aid You in writing rules whose patterns have a well-defined structure.ĭeftemplate is analogous to a struct definition in C. In this short part, You will learn about about a deftemplate which stands for define template.

broken image