Show TOC



IF-THEN clause that performs all the activities in the THEN part if the condition in the IF part is true.


Rules allow relationships to be established between the defined facts in the set of rules in the EH&S Expert and allow data to be derived.


IF Part

You can formulate any conditions in the IF part of the rule. These conditions usually have the following form:






The IF part of a rule can also contain functions. Using the ANY function you can query whether a fact that consists of a number of elements contains a particular expression. You can, for example, determine whether a characteristic that is assigned several R phrases contains one particular R phrase.


IF ANY (<Fact>) = <Expression>

By including the following condition in the IF part, a rule always performs an activity in the THEN part, provided the facts in the THEN part do not equal zero. See also: When Is a Rule Executed?





The activities that can be found in the THEN part of a rule (ToDos) have one of the following forms:


<Fact to be modified>







The activities can be divided into the following types:

  • Value assignments with the operators := , += , and -=

  • Error handling using the commands ERROR , ABORT , and STOP

  • Process control using the commands DISABLE , ENABLE , RESET , and CALL

  • Creation of new value assignment instances with the command COMMIT

For more information, see Operators, Commands, and Functions .

Rule File

The rules can be found in the rule file in a section that is introduced with the keyword RULES and concluded with the keyword END . This section follows the facts section. All rules begin with RULE <Rule name> and are concluded with END . The individual conditions in the IF part and activities in the THEN part are separated by commas. The IF part of the rule is equivalent to an AND operation.

Example Example

The following rule sets an R phrase for the case where the flash point is in a certain range:

End of the example.





Flash point > 21,


Flash point < 55




Rphrase := "R10"



Note Note

If you create a set of rules using the rule editor, the editor generates a rule file with the correct syntax automatically.

End of the note.

The example clearly shows that facts are used in the rules without the user having to specify any data types (such as text or integer). All facts can adopt all data types. If required, the data is converted automatically.

For data types Text , Number , List , and Range used internally and in assignments, see Fact .

Note Note

The order in which you enter the rules is not relevant. The EH&S Expert automatically ensures that the rules are executed in the correct order (see When Is a Rule Executed? ).

End of the note.