The teacher of a class wishes to highlight some key student information to the school staff whenever they open a student's record. The following are the conditions and the corresponding messages the teacher wishes to be displayed:
- If the attendance of the student is less than 60 percent and the final year score is less than 50 percent, then the following message should be displayed:
Student attendance as well as marks are below expectation. - If only the final year score is less than 50 percent, then the following message should be displayed:
Student performance is below the expected level. - If only the attendance is below 50 percent, then the following message should be displayed:
Student attendance is below the expected level.
The student navigates to the Contact entity and navigates to the Business Rules section:

Here are the steps that the teacher needs to follow to set the aforementioned rules:
- Click the + Add button to create a new business rule. The business rule designer should open. Now, fill Field with Final year score, Operator with is less than, and Value with 50 to set the required condition:

- Click on the Apply button and, then, click on the +New button to add another rule to check the value of attendance:

- Note that as both the conditions need to be satisfied in this rule, Rule logic needs to be AND. After the rule is added, click on the Apply button. Then, click on the + Add button again to add an action statement for the condition. Select the Show Error Message action statement:

Now click on the Apply button. On doing so, the action should be added to the condition. In the preceding example, the message will appear on the Final year score field. If you desire to make the message appear on the attendance field as well, they can just add another action block in the same condition block.
- Now, click on the + Add button to add a new condition block. The new condition will act as an Else If condition to the condition that you added in the preceding steps and will only check for the Final year score field:

This is how it will look overall:

- Again, add an action statement for the new condition block. The action should again be of the same type, Show Error Message, and the message to be displayed should be Student performance is below the expected level:

Similarly, we can add conditions for the last block.