Controlling based on the Output Variables of a Test (ONYX)
Syntax in General | Example of an expert rule | Result of this rule |
---|---|---|
getOnyxTestOutcome("[KB-ID]","[test variable]") | getOnyxTestOutcome("84692289655276","S1_max") > 10 | If used in the Visibility tab, this example will make the course element visible once the user has reached a value greater than 10 for the test variable "S1_max" in the indicated course element test (course element ID "69742969114730"). |
getOnyxTestOutcomeZK("[KB-ID]","[test variable]") | getOnyxTestOutcomeZK("84692289655276","T2")="A" | Bei Eintrag im Tab Sichtbarkeit ist der Kursbaustein sichtbar, wenn der Nutzer im angegebenen Kursbaustein Test (Kursbaustein-ID "84692289655276") für die Testvariable "T2" genau den Wert "A" hat. |
Create additional rules by using expert syntax. A tabular overview is provided on the page Expertensyntax.