Before you start setting up and using enumerations, you should get
acquainted with labels and values.
Note: It is important that you determine whether you want to use labels, because
changing a set of enumerations later to add or remove the labels data will affect any
Rulesheets and Ruletests that use that custom data type's enumerations as you can observe
in this topic.
At the Vocabulary root, you created a String enumeration with only values. The
base data type can be any Corticon data type
except Boolean. Every line requires a unique entry of its type, and the list must have no
blank lines from the top down to the last line.
The following examples are String values. They can contain spaces and most
other characters. It needs to be set off in plain single quotation marks. If you enter or
paste text with the delimiters, they are added for you. Like this:
If you want to use labels, then the label is always a String of any alphanumeric
characters but cannot contain spaces. Each must be unique and must have a corresponding
value. Even when you use labels, the values must be unique.
Set Glove.color to use the colorUnlabeled data type:
Set Ball.color to use the colorLabeled data type:
When you create a Rulesheet, the list offered at A1 contains the label (Ball.color = red) , while the list offered at B1 contains the
value in qoutes (Glove.color='red').
You add Rule Statements so that you can see how the labeled and unlabeled items
are handled.
In a simple Ruletest, add some size tests to see what happens. As shown, the
labels and values in the resulting Output are both unquoted. The Rule
Messages tab displays the value when the label was in use and the value of the
value-only enumeration.
Entry of test values in the Ruletest list the label+value's label:
The value-only list has quoted values:
Both are reconciled to unquoted values in the displayed Input and
Output columns:
Note: It is important that you determine in each custom data type whether you want
to use labels. Some enumerations can have labels while others do not. Changing a set of
enumerations later, to add or remove the labels data, affects any Rulesheets and Ruletests
that use that custom data type's enumerations as you can observe in this topic.