Wiki source code of Expertenmodus

Last modified by Carina Enke on 18.11.2025

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