You want to define a set of rules that assigns the characteristic
R phrases
of the value assignment type
Labeling
with the R phrase
R10 (Flammable
) for substances with a flash point between 21 and 55°C. The value assignment type flash point is only to contain one data record, or in other words, assigned a single value.
Start the rule editor and create a new rule (see Using the Rule Editor ).
Under
Description
enter a description for the rule, for example,
Derivation of R phrase from flash point
.
In the
Condition
field, enter the first part of the condition:
21 <
.
From the overview tree choose the characteristic
Value
from the value assignment type
Flash point
and assign it to the
Condition
(
IF
) field using drag & drop.
21 < FLASH_POINT_VAL
is now in the
Condition (IF)
field.
Add to the condition in the
Condition
field so that it reads
21 < FLASH_POINT_VAL, FLASH_POINT_VAL < 55
.
From the overview tree choose the characteristic
R phrases
from the value assignment type
Labeling
and assign it to the
Left Expr.
field using drag & drop.
The internal fact key
LAB_R_PHRAS
appears in the
Left Expr.
field and the system automatically adds the operator
:=
to the
ToDo
field.
From the overview tree choose the phrase
Flammable
under the characteristic
R phrases
from the value assignment type
Labeling
and assign it to the
Right Expr.
field using drag & drop.
The internal phrase key
"[#R10#]"
appears in the
Right Expr.
field.
Save the set of rules.
See Using the Rule Editor .
The rule file (<name>.rul) has the following structure:
FACTS |
||
LAB_R_PHRAS(OUT), |
||
FLASH_POINT_VAL(IN), |
||
;Rules |
||
RULES |
||
RULE NEWRULE1 |
||
DESCRIBE "Derivation of R phrase from flash point" |
||
IF 21 < FLASH_POINT_VAL, FLASH_POINT_VAL < 55 |
||
THEN |
||
LAB_R_PHRAS := "[#R10#]" |
||
END |
||
END |