Last modified by Carina Enke on 15.01.2024

Show last authors
1 {{layout}}
2 {{layout-section ac:type="two_right_sidebar"}}
3 {{layout-cell}}
4 If global test variables are used in a course element test, they can also be used to control visibility and access. To do this, use the expert rule **getOnyxTestOutcome **or** getOnyxTestOutcomeZK **. All test variables available for the selected course element are displayed in tab [[KB Test - Variablen>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Kursbausteine.Test.KB Test Konfiguration.KB Test - Variablen.WebHome]] by means of the entry **output variables of this resource**. In addition to visibility and access rules (expert syntax), they can also be used as placeholders in [[Certificate templates>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Bewertung.Zertifikate.WebHome||shape="rect"]].
5
6 In addition, controlling is also possible by transferring assessment data to an ONYX test. For more information, see the section [[KB Test - Variablen>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Kursbausteine.Test.KB Test Konfiguration.KB Test - Variablen.WebHome]] on the course element test.
7
8 {{info}}
9 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 [[Freigabe innerhalb von Kursen Sichtbarkeit und Zugang>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Kurs.Freigabe von Kursen und Kursinhalten.Freigabe innerhalb von Kursen Sichtbarkeit und Zugang.WebHome]].
10 {{/info}}
11 {{/layout-cell}}
12 {{/layout-section}}
13
14 {{layout-section ac:type="single"}}
15 {{layout-cell}}
16 (% class="wrapped" %)
17 |=(((
18 Syntax in General
19 )))|=(((
20 Example of an expert rule
21 )))|=(((
22 Result of this rule
23 )))
24 |(((
25 //getOnyxTestOutcome("//[KB-ID]//","//[test variable]//")//
26 )))|(((
27 getOnyxTestOutcome("84692289655276","S1_max") > 10
28 )))|(((
29 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").
30 )))
31 |(((
32 //getOnyxTestOutcomeZK("[KB-ID]","[test variable]")//
33 )))|(((
34 getOnyxTestOutcomeZK("84692289655276","T2")="A"
35 )))|(((
36 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.
37 )))
38 {{/layout-cell}}
39 {{/layout-section}}
40
41 {{layout-section ac:type="single"}}
42 {{layout-cell}}
43 Create additional rules by using expert syntax. A tabular overview is provided on the page [[Expertensyntax>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Kurs.Freigabe von Kursen und Kursinhalten.Expertenmodus zur Freigabe innerhalb von Kursen.Expertensyntax.WebHome]].
44 {{/layout-cell}}
45 {{/layout-section}}
46 {{/layout}}