Evaluation of the assessment data of other course elements

Last modified by Anna Paul-Hasenfuss on 25.04.2024

Expert rules let you evaluate the assessment data of an assessable course element and thus control the visibility and access to other course sections. To do this, use the expert rules getScore, getPassed, getMark or getProgress. These rules are also used to summarize and weight the assessment data in the Structure course element.

Another possibility is to transfer the assessment data to an Onyx test. For more information, see the section Variables on the course element Test.

All of the following example rules can be created for both the visibility and access of a course element. To simplify matters, only one scenario is described in each of the following examples. To learn more about the difference between visibility and access, see the page Publishing within courses (visibility and access).

 

In all of the following examples, specific course elements are used. Before using these rules, note down the relevant course element IDs for your scenario and adjust them accordingly in the expert rules.

Syntax in general

Example of an expert rule

Result of this rule

getScore("[KB-ID]")

getScore("84692289655276") >= 10

The course element is visible in the visibility tab as soon as the user has reached at least 10 points in the test (course element ID "84692289655276").

getPassed("[KB-ID]")

getPassed("84389429397045")

If an entry is made in the Visibility tab, the course element is visible as soon as the user has passed the test (course element ID "84389429397045").

getMark("[KB-ID]")

getAttempts("84692289655276") > 0 & getMark("84692289655276") < 4

If an entry is made in the Visibility tab, the course element is visible if the user's grade for the indicated element (course element ID "84692289655276") is better than 4.

 getMark("84692289655276")*0.5 + getMark("84692289655273")*0.4 + getMark("84389429397045")*0.1When used in the Structure course element, the grade of the structure element can be determined by weighting the grades of other elements: in the example, the first course element accounts for 50% of the grade of the structure element, the second for 40% and the third for 10%.

getProgress("[KB-ID]")

getProgress("69742969114730")>=100

If an entry is made in the Access Tab, the course element is accessible if the user has completed the indicated course element (course element ID "69742969114730") (course progress).

Create additional rules by using expert syntax. A tabular overview is provided on the page Expert syntax.

The implementation of another example on using expert rules is explained on the help page Learning path control by test result.