Wiki source code of Expertenmodus

Last modified by Carina Enke on 18.11.2025

Hide last authors
Carina Enke 252.1 1 **Application examples of expert rules**
Carina Enke 201.1 2
Carina Enke 252.1 3 In the following, you will find examples of how to use the expert syntax.
Carina Enke 237.1 4
Carina Enke 252.1 5 **Typical application examples**
Carina Enke 237.1 6
Carina Enke 252.1 7 {{expand title="Make individual content elements in a public course only visible to registered users ..."}}
8 Do you wish to hide certain content elements in a public course from guests? Then enter the following code into the text field next to Expert mode in the Visibility tab of the corresponding course element. This will hide the course element in a publicly accessible course from non-registered guest users.
Carina Enke 237.1 9
10 {{code}}
Carina Enke 252.1 11 isGuest(0)=false
Carina Enke 237.1 12 {{/code}}
13
14 (% class="wrapped" %)
Carina Enke 103.1 15 |=(((
Carina Enke 252.1 16 Configuration in the course editor
Carina Enke 237.1 17 )))|(((
18 (% class="content-wrapper" %)
19 (((
Carina Enke 242.4 20 [[image:attach:Kurseditor - Konfiguration nur registrierte Nutzer_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 21 )))
22 )))
Carina Enke 252.1 23 |=(((
24 Course view as a registered user
25 )))|(((
Carina Enke 237.1 26 (% class="content-wrapper" %)
27 (((
Carina Enke 242.4 28 [[image:attach:Kursrun - Ansicht registrierte Nutzer_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 29 )))
30 )))
31 |=(((
Carina Enke 252.1 32 Course view as a guest user
Carina Enke 237.1 33 )))|(((
Carina Enke 252.1 34 (% class="content-wrapper" %)
35 (((
Carina Enke 242.4 36 [[image:attach:Kurseditor - Konfiguration nicht für Gäste_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 37 )))
Carina Enke 252.1 38 )))
39 |=(((
40 Course view as a course owner
41 )))|(((
Carina Enke 237.1 42 (% class="content-wrapper" %)
43 (((
Carina Enke 242.4 44 [[image:attach:Kursrun - Ansicht Kursverantwortlicher_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 45 )))
46 )))
47 {{/expand}}
48
Carina Enke 252.1 49 {{expand title="Make individual content elements in a public course only visible to guests ..."}}
50 Do you wish to display certain content elements in a public course only to guests and course owners? Then enter the following code into the text field next to Expert mode in the Visibility tab of the corresponding course element. This will display the course element in a publicly accessible course only to guest users and course owners.
Carina Enke 237.1 51
52 {{code}}
Carina Enke 252.1 53 isGuest(0)=true |isCourseAdministrator(0)
Carina Enke 237.1 54 {{/code}}
55
56 (% class="wrapped" %)
57 |=(((
Carina Enke 252.1 58 Configuration in the course editor
Carina Enke 237.1 59 )))|(((
60 (% class="content-wrapper" %)
61 (((
Carina Enke 252.1 62 [[image:attach:Kurseditor - Konfiguration keine Gäste_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 63 )))
64 )))
Carina Enke 252.1 65 |=(((
66 Course view as a registered user
67 )))|(((
Carina Enke 237.1 68 (% class="content-wrapper" %)
69 (((
Carina Enke 242.4 70 [[image:attach:Kursansicht - nicht für registrierte Nutzer_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 71 )))
72 )))
73 |=(((
Carina Enke 252.1 74 Course view as a guest user
Carina Enke 237.1 75 )))|(((
Carina Enke 252.1 76 (% class="content-wrapper" %)
77 (((
Carina Enke 242.4 78 [[image:attach:Kursrun - Ansicht nur Gäste_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 79 )))
Carina Enke 252.1 80 )))
81 |=(((
82 Course view as a course owner
83 )))|(((
Carina Enke 237.1 84 (% class="content-wrapper" %)
85 (((
Carina Enke 242.4 86 [[image:attach:Kursrun - Ansicht Kursverantwortlicher_de.png||data-xwiki-image-style="img-screen" data-xwiki-image-style-border="true" width="500"]]
Carina Enke 237.1 87 )))
88 )))
89 {{/expand}}
90
Carina Enke 252.1 91 {{expand title="Activate course elements according to test result ..."}}
92 Do you wish to activate certain course elements depending on a test? For instructions on how to implement this scenario, see the help page [[Learning path control by test result>>doc:LMS.BenutzerhandbuchOPAL.Lehren.Leitfäden.Lernwegsteuerung nach Testergebnis.WebHome]].
Carina Enke 237.1 93 {{/expand}}
94
Carina Enke 252.1 95 {{expand title="Further application examples of the expert syntax ..."}}
Carina Enke 237.1 96 {{info}}
Carina Enke 252.1 97 (% class="box box infomessage infomessage" %)In addition to the general examples, which can be used institution-independently, there are also institution-specific restrictions on data that will be transmitted depending on the institution.
98
99 (% class="box box infomessage infomessage" %)For OPAL users, the help page [[Overview of OPAL Shibboleth>>doc:LMS.Benutzerhandbuch OPAL.Administration.OPAL Shibboleth Attribute.WebHome]] attributes contains all currently usable institution-specific attributes of Saxon institutions.
Carina Enke 237.1 100 {{/info}}
101
102 (% class="wrapped" %)
103 |=(((
Carina Enke 252.1 104 (% style="color:#3f4444" %)Examples of rules in the tabs //«//Visibility// », « //Access// », //and //« //Points// » //(structure element)
Carina Enke 237.1 105 )))|=(((
Carina Enke 252.1 106 Effects
Carina Enke 237.1 107 )))
108 |(((
Carina Enke 252.1 109 (% class="TableParagraph" %)
Carina Enke 237.1 110 isGuest(0)=true
111 )))|(((
Carina Enke 252.1 112 (% class="TableParagraph" %)
113 If this code is entered in the Visibility tab, the course element will only be visible to guests, but not to registered users.
Carina Enke 237.1 114
Carina Enke 252.1 115 (% class="TableParagraph" %)
116 If this code is entered in the Access tab, only guests will have access to this course element.
Carina Enke 237.1 117
Carina Enke 252.1 118 (% class="TableParagraph" %)
119 Alternatively, the code isGuest(0) or isGuest (0)=1 can be used.
Carina Enke 237.1 120 )))
121 |(% colspan="1" %)(% colspan="1" %)
122 (((
123 isGuest(0)=false
124 )))|(% colspan="1" %)(% colspan="1" %)
125 (((
Carina Enke 252.1 126 If this code is entered in the Visibility tab, the course element will be hidden from guests.
127
128 If this code is entered in the Access tab, guests will not have access to the course element's contents.
Carina Enke 237.1 129 )))
130 |(((
Carina Enke 252.1 131 (% class="TableParagraph" %)
132 inLearningGroup("Beginners") = false
Carina Enke 237.1 133 )))|(((
Carina Enke 252.1 134 (% class="TableParagraph" %)
135 With the exception of the «Beginners» group, the course element will be visible to all course participants.
Carina Enke 237.1 136 )))
137 |(((
Carina Enke 252.1 138 (% class="TableParagraph" %)
139 (now >= date("22.03.2017 12:00")) & (now <= date("23.08.2017 18:00")) | inLearningGroup("Supervisors")
Carina Enke 237.1 140 )))|(((
Carina Enke 252.1 141 (% class="TableParagraph" %)
142 The course element will be visible to all course participants from 22.03.2017 to 23.08.2017. For the members of the «Supervisors» learning group//, in contrast, it will be visible// at any time.
Carina Enke 237.1 143 )))
144 |(((
Carina Enke 252.1 145 (% class="TableParagraph" %)
146 (now >= date("03.09.2017 00:00")) & (now <= date("13.10.2017 00:00")) & inRightGroup("Assessors")| isUser("Author")
Carina Enke 237.1 147 )))|(((
Carina Enke 252.1 148 (% class="TableParagraph" %)
149 The course element will be visible to all course participants of the «Assessors» right group from 03.09.2017 to 13.10.2017. For the user with the user name «Author»//, in contrast, it will be visible at any time.
Carina Enke 237.1 150 )))
Carina Enke 252.1 151 |(% colspan="1" %)(% colspan="1" %)
152 (((
153 (% class="TableParagraph" %)
Carina Enke 237.1 154 isInAttribute("surname","Mue")
Carina Enke 252.1 155 )))|(% colspan="1" %)(% colspan="1" %)
156 (((
157 (% class="TableParagraph" %)
158 Returns TRUE for all users whose «surname» attribute contains the letter sequence "Mue". For example, it returns TRUE for the value "Mueller" or "Muehlebacher".
Carina Enke 237.1 159 )))
160 |(% colspan="1" %)(% colspan="1" %)
161 (((
Carina Enke 252.1 162 (% class="TableParagraph" %)
Carina Enke 237.1 163 (getUserProperty("orgUnit") = "Marketing")
164 )))|(% colspan="1" %)(% colspan="1" %)
165 (((
Carina Enke 252.1 166 (% class="TableParagraph" %)
167 Checks whether a person is in the "Marketing" organisation unit. This is useful, for example, if the data is automatically transferred from LDAP.
Carina Enke 237.1 168 )))
169 |(% colspan="1" %)(% colspan="1" %)
170 (((
Carina Enke 252.1 171 (% class="TableParagraph" %)
Carina Enke 237.1 172 (getPassed("69742969114730") | getPassed("69742969115733") | getPassed("69742969118009")) * 10
173 )))|(% colspan="1" %)(% colspan="1" %)
174 (((
Carina Enke 252.1 175 (% class="TableParagraph" %)
176 This rule can be set in the «Points» tab -> «Process points» of the Structure course element. The Structure course element shows 10 points if any of the tests (course element IDs "69742969114730", "69742969115733", or "69742969118009") will be passed, otherwise it shows 0 points.
Carina Enke 237.1 177 )))
178 |(% colspan="1" %)(% colspan="1" %)
179 (((
180 (getScore("69742969114730") + getScore("69742969115733") + getScore("69742969118009")) >= 140 | getPassed("69978845384688")
181 )))|(% colspan="1" %)(% colspan="1" %)
182 (((
Carina Enke 252.1 183 (% class="TableParagraph" %)
184 This rule can be set in the «Points» tab ->
185
186 «Passed if» of the Structure course element. The Structure course element shows "passed" if a minimum of 140 points will be achieved across all tests or if «passed» will be manually set (Assessment course element with the ID "69978845384688").
Carina Enke 237.1 187 )))
188 |(% colspan="1" %)(% colspan="1" %)
189 (((
Carina Enke 252.1 190 (% class="TableParagraph" %)
Carina Enke 237.1 191 getAttempts("70323786958847") > 0
192 )))|(% colspan="1" %)(% colspan="1" %)
193 (((
Carina Enke 252.1 194 (% class="TableParagraph" %)
195 Returns TRUE as soon as the course participant has completed the test with the specified ID for the first time.
Carina Enke 237.1 196 )))
Carina Enke 252.1 197 |(((
198 (% class="TableParagraph" %)
Carina Enke 237.1 199 getAttempts("70323524635734") <= 3
Carina Enke 252.1 200 )))|(((
201 (% class="TableParagraph" %)
202 Returns FALSE as soon as the course participant has saved more than 3 files to the drop box of the Task course element.
Carina Enke 237.1 203 )))
Carina Enke 252.1 204 |(((
205 (% class="TableParagraph" %)
Carina Enke 237.1 206 getInitialEnrollmentDate("70323786958847") <= date("26.5.2017 18:00")
Carina Enke 252.1 207 )))|(((
208 (% class="TableParagraph" %)
209 Returns TRUE for those course participants who enrolled in one of the available groups via the Enrolment course element using a specified ID before 6 p.m. on May 26 2017.
Carina Enke 237.1 210 )))
211 |(% colspan="1" %)(% colspan="1" %)
212 (((
Carina Enke 252.1 213 (% class="TableParagraph" %)
Carina Enke 237.1 214 getInitialEnrollmentDate("70323786958847") + 2h > now
215 )))|(% colspan="1" %)(% colspan="1" %)
216 (((
Carina Enke 252.1 217 (% class="TableParagraph" %)
218 Returns TRUE within two hours from the time of enrolment for those course participants who enrolled in one of the available groups via the Enrolment course element using a specified ID. In this way, it can be ensured that each course participant can only e.g. process a script during a certain period of time.
Carina Enke 237.1 219 )))
220 |(% colspan="1" %)(% colspan="1" %)
221 (((
Carina Enke 252.1 222 (% class="TableParagraph" %)
Carina Enke 237.1 223 (getInitialCourseLaunchDate(0) >= never) | (getInitialCourseLaunchDate(0) + 2h > now)
224 )))|(% colspan="1" %)(% colspan="1" %)
225 (((
Carina Enke 252.1 226 (% class="TableParagraph" %)
227 Returns TRUE if the course participant has not yet visited the course, or during the first two hours of the first course visit. In this way, it can be ensured that each course participant can only see the course for a certain period of time.
Carina Enke 237.1 228 )))
229 |(% colspan="1" %)(% colspan="1" %)
230 (((
Carina Enke 252.1 231 (% class="TableParagraph" %)
Carina Enke 237.1 232 (getRecentCourseLaunchDate(0) + 10min) > now
233 )))|(% colspan="1" %)(% colspan="1" %)
234 (((
Carina Enke 252.1 235 (% class="TableParagraph" %)
236 Returns TRUE if the user has been active in the course for more than 10 minutes.
Carina Enke 237.1 237 )))
Carina Enke 252.1 238 |(((
239 (% class="TableParagraph" %)
Carina Enke 237.1 240 getOnyxTestOutcome("84692289655276","SCORE") >= 10
Carina Enke 252.1 241 )))|(((
242 (% class="TableParagraph" %)
243 Returns TRUE if the user has reached at least 10 points.
Carina Enke 237.1 244 )))
Carina Enke 252.1 245 |(((
246 (% class="TableParagraph" %)
Carina Enke 237.1 247 getOnyxTestOutcomeZK("84389429397045","PASS") ="true"
Carina Enke 252.1 248 )))|(((
249 (% class="TableParagraph" %)
250 Returns TRUE if the user has passed the test.
Carina Enke 237.1 251 )))
Carina Enke 252.1 252 |(((
253 (% class="TableParagraph" %)
Carina Enke 237.1 254 getMark("84692289655276") > 4
Carina Enke 252.1 255 )))|(((
256 (% class="TableParagraph" %)
257 Returns TRUE if the user's mark for the specified course element is better than 4.
Carina Enke 237.1 258 )))
259 |(% colspan="1" %)(% colspan="1" %)
260 (((
261 getProgress("69742969114730")>=100
262 )))|(% colspan="1" %)(% colspan="1" %)
263 (((
Carina Enke 252.1 264 Returns TRUE if the user has completed the specified course element (course progress).
Carina Enke 237.1 265 )))
266
Carina Enke 252.1 267 {{note title="Attention!"}}
268 Please note that the above-mentioned course element IDs are just examples. When you create a course, you need to reference the IDs of your own courses.
Carina Enke 237.1 269 {{/note}}
270 {{/expand}}
271
Carina Enke 252.1 272 **Expert syntax**
Carina Enke 237.1 273
Carina Enke 252.1 274 {{expand title="Overview of the available expert syntax ..."}}
Carina Enke 237.1 275 (% class="wrapped" %)
276 |=(((
Carina Enke 252.1 277 Type
Carina Enke 103.1 278 )))|=(((
279 Syntax
280 )))|=(((
Carina Enke 252.1 281 Description
Carina Enke 103.1 282 )))
283 |(% rowspan="2" %)(% rowspan="2" %)
284 (((
Carina Enke 252.1 285 (% class="TableParagraph" %)
286 **Constants**
Carina Enke 103.1 287 )))|(((
Carina Enke 252.1 288 (% class="TableParagraph" %)
289 //TRUE //or //1//
Carina Enke 103.1 290 )))|(((
Carina Enke 252.1 291 (% class="TableParagraph" %)
292 True
Carina Enke 103.1 293 )))
294 |(((
Carina Enke 252.1 295 (% class="TableParagraph" %)
296 //FALSE //or //0//
Carina Enke 103.1 297 )))|(((
Carina Enke 252.1 298 (% class="TableParagraph" %)
299 False
Carina Enke 103.1 300 )))
Carina Enke 252.1 301 |(((
302 (% class="TableParagraph" %)
Carina Enke 103.1 303 **Variable**
Carina Enke 252.1 304 )))|(((
305 (% class="TableParagraph" %)
Carina Enke 103.1 306 //now//
Carina Enke 252.1 307 )))|(((
308 (% class="TableParagraph" %)
309 Current server system time
Carina Enke 103.1 310 )))
Carina Enke 237.1 311 |(% rowspan="37" %)(% rowspan="37" %)
Carina Enke 103.1 312 (((
Carina Enke 252.1 313 (% class="TableParagraph" %)
314 **Functions**
315 )))|(((
316 (% class="TableParagraph" %)
317 //date("[date]")//
318 )))|(((
319 (% class="TableParagraph" %)
320 Query date
Carina Enke 103.1 321 )))
322 |(% colspan="1" %)(% colspan="1" %)
323 (((
Carina Enke 252.1 324 (% class="TableParagraph" %)
Carina Enke 103.1 325 //inLearningGroup("//[string]//")//
326 )))|(% colspan="1" %)(% colspan="1" %)
327 (((
Carina Enke 252.1 328 (% class="TableParagraph" %)
329 Returns TRUE for all members of the learning group with the title [string] of the current course.
Carina Enke 103.1 330 )))
331 |(% colspan="1" %)(% colspan="1" %)
332 (((
Carina Enke 252.1 333 (% class="TableParagraph" %)
Carina Enke 103.1 334 //inLearningGroup("//[string1]//","//[string2]//")//
335 )))|(% colspan="1" %)(% colspan="1" %)
336 (((
Carina Enke 252.1 337 (% class="TableParagraph" %)
338 Returns TRUE for all members of the specified learning group [string1] of the course with the specified course ID=[string2].
Carina Enke 103.1 339 )))
340 |(% colspan="1" %)(% colspan="1" %)
341 (((
Carina Enke 252.1 342 (% class="TableParagraph" %)
Carina Enke 103.1 343 //inLearningGroupWaitingList("//[string]//")//
344 )))|(% colspan="1" %)(% colspan="1" %)
345 (((
Carina Enke 252.1 346 (% class="TableParagraph" %)
347 Returns TRUE for all users on the waiting list of the learning group [string] of the current course.
Carina Enke 103.1 348 )))
349 |(% colspan="1" %)(% colspan="1" %)
350 (((
Carina Enke 252.1 351 (% class="TableParagraph" %)
352 //inLearningGroupWaitingList("//[string1]//","//[string2]//"// //)//
Carina Enke 103.1 353 )))|(% colspan="1" %)(% colspan="1" %)
354 (((
Carina Enke 252.1 355 (% class="TableParagraph" %)
356 Returns TRUE for all users on the waiting list of the learning group [string1] of the course with the specified course ID=[string2].
Carina Enke 103.1 357 )))
358 |(% colspan="1" %)(% colspan="1" %)
359 (((
Carina Enke 252.1 360 (% class="TableParagraph" %)
Carina Enke 103.1 361 //inRightGroup("//[string]//")//
362 )))|(% colspan="1" %)(% colspan="1" %)
363 (((
Carina Enke 252.1 364 (% class="TableParagraph" %)
365 Returns TRUE for all members of the right group [string].
Carina Enke 103.1 366 )))
367 |(% colspan="1" %)(% colspan="1" %)
368 (((
Carina Enke 252.1 369 (% class="TableParagraph" %)
Carina Enke 103.1 370 //isLearningGroupFull("//[string]//")//
371 )))|(% colspan="1" %)(% colspan="1" %)
372 (((
Carina Enke 252.1 373 (% class="TableParagraph" %)
374 Returns the Boolean TRUE (=full) or FALSE (=not full) for the specified learning group in the current course.
Carina Enke 103.1 375 )))
376 |(% colspan="1" %)(% colspan="1" %)
377 (((
Carina Enke 252.1 378 (% class="TableParagraph" %)
Carina Enke 103.1 379 //isLearningGroupFull("//[string1]//","//[string2]//")//
380 )))|(% colspan="1" %)(% colspan="1" %)
381 (((
Carina Enke 252.1 382 (% class="TableParagraph" %)
383 Returns the Boolean TRUE (=full) or FALSE (=not full) for the specified learning group=[string1] of the course with the course ID=[string2].
Carina Enke 103.1 384 )))
385 |(% colspan="1" %)(% colspan="1" %)
386 (((
Carina Enke 252.1 387 (% class="TableParagraph" %)
Carina Enke 103.1 388 //isUser("//[string]//")//
389 )))|(% colspan="1" %)(% colspan="1" %)
390 (((
Carina Enke 252.1 391 (% class="TableParagraph" %)
392 Returns TRUE for the user with the user name [string].
Carina Enke 103.1 393 )))
394 |(% colspan="1" %)(% colspan="1" %)
395 (((
Carina Enke 252.1 396 (% class="TableParagraph" %)
Carina Enke 103.1 397 //inLearningArea("//[string]//")//
398 )))|(% colspan="1" %)(% colspan="1" %)
399 (((
Carina Enke 252.1 400 (% class="TableParagraph" %)
401 Returns TRUE for all members of the groups in the learning area [string] of the current course.
Carina Enke 103.1 402 )))
403 |(% colspan="1" %)(% colspan="1" %)
404 (((
Carina Enke 252.1 405 (% class="TableParagraph" %)
Carina Enke 103.1 406 //inLearningArea("//[string1]//","//[string2]//")//
407 )))|(% colspan="1" %)(% colspan="1" %)
408 (((
Carina Enke 252.1 409 (% class="TableParagraph" %)
410 Returns TRUE for all members of the groups in the specified learning area [string1] of the course with the specified course ID=[string2].
Carina Enke 103.1 411 )))
412 |(% colspan="1" %)(% colspan="1" %)
413 (((
Carina Enke 252.1 414 (% class="TableParagraph" %)
Carina Enke 103.1 415 //getNumberOfEnrollments("//[string1]*//")//
416 )))|(% colspan="1" %)(% colspan="1" %)
417 (((
Carina Enke 252.1 418 (% class="TableParagraph" %)
419 Returns TRUE, when the configured number of learning group members is reached in the learning area (string1).
Carina Enke 103.1 420 )))
421 |(% colspan="1" %)(% colspan="1" %)
422 (((
Carina Enke 252.1 423 (% class="TableParagraph" %)
Carina Enke 237.1 424 //isGlobalAuthor()//
Carina Enke 103.1 425 )))|(% colspan="1" %)(% colspan="1" %)
426 (((
Carina Enke 252.1 427 (% class="TableParagraph" %)
428 Returns TRUE for all members of the OPAL author group.
Carina Enke 103.1 429 )))
430 |(% colspan="1" %)(% colspan="1" %)
431 (((
Carina Enke 252.1 432 (% class="TableParagraph" %)
Carina Enke 237.1 433 //isCourseAdministrator()//
Carina Enke 103.1 434 )))|(% colspan="1" %)(% colspan="1" %)
435 (((
Carina Enke 252.1 436 (% class="TableParagraph" %)
437 Returns TRUE for all owners of your course (learning resource).
Carina Enke 103.1 438 )))
439 |(% colspan="1" %)(% colspan="1" %)
440 (((
Carina Enke 252.1 441 (% class="TableParagraph" %)
Carina Enke 237.1 442 //isCourseCoach()//
Carina Enke 103.1 443 )))|(% colspan="1" %)(% colspan="1" %)
444 (((
Carina Enke 252.1 445 (% class="TableParagraph" %)
446 Returns TRUE for all users who supervise a learning group.
Carina Enke 103.1 447 )))
448 |(% colspan="1" %)(% colspan="1" %)
449 (((
Carina Enke 252.1 450 (% class="TableParagraph" %)
Carina Enke 237.1 451 //isGuest()//
Carina Enke 103.1 452 )))|(% colspan="1" %)(% colspan="1" %)
453 (((
Carina Enke 252.1 454 (% class="TableParagraph" %)
455 Returns TRUE for all users who visit OPAL as guests.
Carina Enke 103.1 456 )))
457 |(% colspan="1" %)(% colspan="1" %)
458 (((
Carina Enke 252.1 459 (% class="TableParagraph" %)
Carina Enke 237.1 460 //isExternalUser()//
Carina Enke 103.1 461 )))|(% colspan="1" %)(% colspan="1" %)
462 (((
Carina Enke 252.1 463 (% class="TableParagraph" %)
464 Returns TRUE for everyone who uses OPAL as an external user.
Carina Enke 103.1 465 )))
466 |(% colspan="1" %)(% colspan="1" %)
467 (((
Carina Enke 252.1 468 (% class="TableParagraph" %)
Carina Enke 103.1 469 //hasAttribute("//[AttrName]//","//[string]//")//
470 )))|(% colspan="1" %)(% colspan="1" %)
471 (((
Carina Enke 252.1 472 (% class="TableParagraph" %)
473 Returns TRUE if [string] matches the value of the AAI attribute [AttrName] of the respective user.
Carina Enke 103.1 474 )))
475 |(% colspan="1" %)(% colspan="1" %)
476 (((
Carina Enke 252.1 477 (% class="TableParagraph" %)
Carina Enke 103.1 478 //isInAttribute("//[AttrName]//","//[substring]//")//
479 )))|(% colspan="1" %)(% colspan="1" %)
480 (((
Carina Enke 252.1 481 (% class="TableParagraph" %)
482 Returns TRUE if [substring] matches a portion of the value of the AAI attribute [AttrName] of the respective user.
Carina Enke 103.1 483 )))
484 |(% colspan="1" %)(% colspan="1" %)
485 (((
Carina Enke 252.1 486 (% class="TableParagraph" %)
Carina Enke 103.1 487 //getUserProperty("//[string]//")//
488 )))|(% colspan="1" %)(% colspan="1" %)
489 (((
Carina Enke 252.1 490 (% class="TableParagraph" %)
491 Returns the specified user property of the executing user.
Carina Enke 103.1 492 )))
493 |(% colspan="1" %)(% colspan="1" %)
494 (((
Carina Enke 252.1 495 (% class="TableParagraph" %)
Carina Enke 103.1 496 //getPassed("//[integer]//")//
497 )))|(% colspan="1" %)(% colspan="1" %)
498 (((
Carina Enke 252.1 499 (% class="TableParagraph" %)
500 Returns the Boolean TRUE (=passed) or FALSE (=not passed) from the course element with the specified ID.
Carina Enke 103.1 501 )))
502 |(% colspan="1" %)(% colspan="1" %)
503 (((
Carina Enke 252.1 504 (% class="TableParagraph" %)
Carina Enke 103.1 505 //getScore("//[integer]//")//
506 )))|(% colspan="1" %)(% colspan="1" %)
507 (((
Carina Enke 252.1 508 (% class="TableParagraph" %)
509 Returns the number of points from the course element with the specified ID.
Carina Enke 103.1 510 )))
511 |(% colspan="1" %)(% colspan="1" %)
512 (((
Carina Enke 252.1 513 (% class="TableParagraph" %)
Carina Enke 103.1 514 //getAttempts("//[integer]//")//
515 )))|(% colspan="1" %)(% colspan="1" %)
516 (((
Carina Enke 252.1 517 (% class="TableParagraph" %)
518 Returns the number of completed attempts from the course element with the specified ID. Can be applied to course elements of the type Test, Self-test, Survey (possible return values 0 or 1), and Task (return value = number of submitted files).
Carina Enke 103.1 519 )))
520 |(% colspan="1" %)(% colspan="1" %)
521 (((
Carina Enke 252.1 522 (% class="TableParagraph" %)
Carina Enke 103.1 523 //getInitialEnrollmentDate("//[integer]//")//
524 )))|(% colspan="1" %)(% colspan="1" %)
525 (((
Carina Enke 252.1 526 (% class="TableParagraph" %)
527 Returns the date of the respective course participant's first-time enrolment from the Enrolment course element with the specified ID.
Carina Enke 103.1 528 )))
529 |(% colspan="1" %)(% colspan="1" %)
530 (((
Carina Enke 252.1 531 (% class="TableParagraph" %)
Carina Enke 103.1 532 //getRecentEnrollmentDate("//[integer]//")//
533 )))|(% colspan="1" %)(% colspan="1" %)
534 (((
Carina Enke 252.1 535 (% class="TableParagraph" %)
536 Returns the date of the respective course participant's last enrolment from the Enrolment course element with the specified ID.
Carina Enke 103.1 537 )))
Carina Enke 252.1 538 |(((
539 (% class="TableParagraph" %)
Carina Enke 237.1 540 //getInitialCourseLaunchDate()//
Carina Enke 252.1 541 )))|(((
542 (% class="TableParagraph" %)
543 Returns the date of the first-time course visit of the respective course participant.
Carina Enke 103.1 544 )))
Carina Enke 252.1 545 |(((
546 (% class="TableParagraph" %)
Carina Enke 237.1 547 //getRecentCourseLaunchDate()//
Carina Enke 252.1 548 )))|(((
549 (% class="TableParagraph" %)
550 Returns the date of the last course visit of the respective course participant.
Carina Enke 103.1 551 )))
552 |(% colspan="1" %)(% colspan="1" %)
553 (((
Carina Enke 252.1 554 (% class="TableParagraph" %)
555 //getPassedWithCourseId("//[integer-1]//","//[integer- 2]//")//
Carina Enke 103.1 556 )))|(% colspan="1" %)(% colspan="1" %)
557 (((
Carina Enke 252.1 558 (% class="TableParagraph" %)
559 Returns the Boolean TRUE (=passed) or FALSE (=not passed) from the course element with the ID=[integer-2] of the course with the ID=[integer-1].
Carina Enke 103.1 560 )))
561 |(% colspan="1" %)(% colspan="1" %)
562 (((
Carina Enke 252.1 563 (% class="TableParagraph" %)
Carina Enke 103.1 564 //getScoreWithCourseId("//[integer-1]//","//[integer-2]//")//
565 )))|(% colspan="1" %)(% colspan="1" %)
566 (((
Carina Enke 252.1 567 (% class="TableParagraph" %)
568 Returns the number of points from the course element with the ID=[integer-2] of the course with the ID=[integer-1].
Carina Enke 103.1 569 )))
570 |(% colspan="1" %)(% colspan="1" %)
571 (((
Carina Enke 252.1 572 //getMarkWithCourseId(" //[integer-1]//","//[integer-2]//")//
Carina Enke 103.1 573 )))|(% colspan="1" %)(% colspan="1" %)
574 (((
Carina Enke 252.1 575 Returns the mark from the course element with the ID=[integer-2] of the course with the ID=[integer-1].
Carina Enke 103.1 576 )))
Carina Enke 252.1 577 |(((
578 (% class="TableParagraph" %)
Carina Enke 103.1 579 //hasEvaluationCompleted("//KB-ID//")//
Carina Enke 252.1 580 )))|(((
581 (% class="TableParagraph" %)
582 Returns TRUE for all users who have successfully completed the specified course element.
Carina Enke 103.1 583 )))
Carina Enke 252.1 584 |(((
585 (% class="TableParagraph" %)
Carina Enke 103.1 586 //getNumberOfEnrollments("//[string1]*//")//
Carina Enke 252.1 587 )))|(((
588 (% class="TableParagraph" %)
589 Returns TRUE, when the configured number of learning group members is reached in the learning area (string1).
Carina Enke 103.1 590 )))
Carina Enke 252.1 591 |(((
592 (% class="TableParagraph" %)
Carina Enke 103.1 593 //getOnyxTestOutcome("//[string1]//","//[string2]//")//
Carina Enke 252.1 594 )))|(((
595 (% class="TableParagraph" %)
596 Returns from the ONYX test course element with the specified ID (string1) and the specified output variable (string2) the value of this variable. The return value will be a number.
Carina Enke 103.1 597 )))
598 |(% colspan="1" %)(% colspan="1" %)
599 (((
Carina Enke 252.1 600 (% class="TableParagraph" %)
Carina Enke 103.1 601 //getOnyxTestOutcomeZK("//[string1]//","//[string2]//")//
602 )))|(% colspan="1" %)(% colspan="1" %)
603 (((
Carina Enke 252.1 604 (% class="TableParagraph" %)
605 Returns from the ONYX test course element with the specified ID (string1) and the specified output variable (string2) the value of this variable. The return value will be a string.
Carina Enke 103.1 606 )))
607 |(% colspan="1" %)(% colspan="1" %)
608 (((
Carina Enke 252.1 609 (% class="TableParagraph" %)
Carina Enke 103.1 610 //getProgress(//"[integer]"//)//
611 )))|(% colspan="1" %)(% colspan="1" %)
612 (((
Carina Enke 252.1 613 (% class="TableParagraph" %)
614 Returns the progress from the course element with the specified ID as a numerical value between 0 and 100 (percent).
Carina Enke 103.1 615 )))
616 |(% colspan="1" %)(% colspan="1" %)
617 (((
Carina Enke 252.1 618 (% class="TableParagraph" %)
Carina Enke 103.1 619 //isPasswordConfirmed("//[string]")
620 )))|(% colspan="1" %)(% colspan="1" %)
621 (((
Carina Enke 252.1 622 (% class="TableParagraph" %)
623 Returns TRUE after entering the correct password (string1).
Carina Enke 103.1 624
Carina Enke 252.1 625 (% class="TableParagraph" %)
626 Can only be used with course elements that allow a password restriction even in simple mode.
Carina Enke 103.1 627 )))
628 |(% colspan="1" %)(% colspan="1" %)
629 (((
Carina Enke 252.1 630 (% class="TableParagraph" %)
Carina Enke 103.1 631 //comesFrom("//[string]//")//
632 )))|(% colspan="1" %)(% colspan="1" %)
633 (((
Carina Enke 252.1 634 (% class="TableParagraph" %)
635 Returns TRUE if the user has a linked account to OLAT with the specified system ID.
Carina Enke 103.1 636 )))
637 |(% rowspan="4" %)(% rowspan="4" %)
638 (((
Carina Enke 252.1 639 (% class="TableParagraph" %)
640 **Units**
Carina Enke 103.1 641 )))|(% colspan="1" %)(% colspan="1" %)
642 (((
Carina Enke 252.1 643 (% class="TableParagraph" %)
Carina Enke 103.1 644 //min//
645 )))|(% colspan="1" %)(% colspan="1" %)
646 (((
Carina Enke 252.1 647 (% class="TableParagraph" %)
648 Minutes
Carina Enke 103.1 649 )))
650 |(% colspan="1" %)(% colspan="1" %)
651 (((
Carina Enke 252.1 652 (% class="TableParagraph" %)
Carina Enke 103.1 653 //h//
654 )))|(% colspan="1" %)(% colspan="1" %)
655 (((
Carina Enke 252.1 656 (% class="TableParagraph" %)
657 Hours
Carina Enke 103.1 658 )))
659 |(% colspan="1" %)(% colspan="1" %)
660 (((
Carina Enke 252.1 661 (% class="TableParagraph" %)
Carina Enke 103.1 662 //w//
663 )))|(% colspan="1" %)(% colspan="1" %)
664 (((
Carina Enke 252.1 665 (% class="TableParagraph" %)
666 Weeks
Carina Enke 103.1 667 )))
668 |(% colspan="1" %)(% colspan="1" %)
669 (((
Carina Enke 252.1 670 (% class="TableParagraph" %)
Carina Enke 103.1 671 //m//
672 )))|(% colspan="1" %)(% colspan="1" %)
673 (((
Carina Enke 252.1 674 (% class="TableParagraph" %)
675 Months
Carina Enke 103.1 676 )))
677 |(% rowspan="9" %)(% rowspan="9" %)
678 (((
Carina Enke 252.1 679 (% class="TableParagraph" %)
680 **Operators**
Carina Enke 103.1 681 )))|(% colspan="1" %)(% colspan="1" %)
682 (((
Carina Enke 252.1 683 (% class="TableParagraph" %)
Carina Enke 103.1 684 ~=
685 )))|(% colspan="1" %)(% colspan="1" %)
686 (((
Carina Enke 252.1 687 (% class="TableParagraph" %)
688 Equal to
Carina Enke 103.1 689 )))
Carina Enke 252.1 690 |(((
691 (% class="TableParagraph" %)
Carina Enke 103.1 692 ~>
Carina Enke 252.1 693 )))|(((
694 (% class="TableParagraph" %)
695 Greater than
Carina Enke 103.1 696 )))
Carina Enke 252.1 697 |(((
698 (% class="TableParagraph" %)
Carina Enke 103.1 699 <
Carina Enke 252.1 700 )))|(((
701 (% class="TableParagraph" %)
702 Less than
Carina Enke 103.1 703 )))
Carina Enke 252.1 704 |(((
705 (% class="TableParagraph" %)
Carina Enke 103.1 706 ~>=
Carina Enke 252.1 707 )))|(((
708 (% class="TableParagraph" %)
709 Greater than or equal to
Carina Enke 103.1 710 )))
Carina Enke 252.1 711 |(((
712 (% class="TableParagraph" %)
Carina Enke 103.1 713 <=
Carina Enke 252.1 714 )))|(((
715 (% class="TableParagraph" %)
716 Less than or equal to
Carina Enke 103.1 717 )))
Carina Enke 252.1 718 |(((
719 (% class="TableParagraph" %)
Carina Enke 103.1 720 *
Carina Enke 252.1 721 )))|(((
722 (% class="TableParagraph" %)
723 Multiplication
Carina Enke 103.1 724 )))
725 |(% colspan="1" %)(% colspan="1" %)
726 (((
Carina Enke 252.1 727 (% class="TableParagraph" %)
Carina Enke 103.1 728 /
729 )))|(% colspan="1" %)(% colspan="1" %)
730 (((
Carina Enke 252.1 731 (% class="TableParagraph" %)
Carina Enke 103.1 732 Division
733 )))
734 |(% colspan="1" %)(% colspan="1" %)
735 (((
Carina Enke 252.1 736 (% class="TableParagraph" %)
Carina Enke 103.1 737 +
738 )))|(% colspan="1" %)(% colspan="1" %)
739 (((
Carina Enke 252.1 740 (% class="TableParagraph" %)
Carina Enke 103.1 741 Addition
742 )))
743 |(% colspan="1" %)(% colspan="1" %)
744 (((
Carina Enke 252.1 745 (% class="TableParagraph" %)
Carina Enke 103.1 746 -
747 )))|(% colspan="1" %)(% colspan="1" %)
748 (((
Carina Enke 252.1 749 (% class="TableParagraph" %)
750 Subtraction
Carina Enke 103.1 751 )))
Carina Enke 237.1 752 |(% rowspan="3" %)(% rowspan="3" %)
Carina Enke 103.1 753 (((
Carina Enke 252.1 754 (% class="TableParagraph" %)
Carina Enke 103.1 755 **Booleans**
Carina Enke 252.1 756 )))|(((
757 (% class="TableParagraph" %)
Carina Enke 103.1 758 &
Carina Enke 252.1 759 )))|(((
760 (% class="TableParagraph" %)
761 Logical AND
Carina Enke 103.1 762 )))
Carina Enke 252.1 763 |(((
764 (% class="TableParagraph" %)
Carina Enke 103.1 765 ~|
Carina Enke 252.1 766 )))|(((
767 (% class="TableParagraph" %)
768 Logical OR
Carina Enke 103.1 769 )))
Carina Enke 252.1 770 |(((
771 (% class="TableParagraph" %)
Carina Enke 103.1 772 !
Carina Enke 252.1 773 )))|(((
774 (% class="TableParagraph" %)
775 Logical NOT
Carina Enke 155.1 776 )))
777 {{/expand}}