Last modified by Carina Enke on 29.07.2026

Show last authors
1 (% class="wrapped" %)
2 |=(((
3 Type
4 )))|=(((
5 Syntax
6 )))|=(((
7 Description
8 )))
9 |(% rowspan="2" %)(% rowspan="2" %)
10 (((
11 (% class="TableParagraph" %)
12 **Constants**
13 )))|(((
14 (% class="TableParagraph" %)
15 //true //or //TRUE//
16 )))|(((
17 (% class="TableParagraph" %)
18 True
19 )))
20 |(((
21 (% class="TableParagraph" %)
22 //false //or //FALSE//
23 )))|(((
24 (% class="TableParagraph" %)
25 False
26 )))
27 |(((
28 (% class="TableParagraph" %)
29 **Variable**
30 )))|(((
31 (% class="TableParagraph" %)
32 //now//
33 )))|(((
34 (% class="TableParagraph" %)
35 Current server system time
36 )))
37 |(% rowspan="39" %)(% rowspan="39" %)
38 (((
39 (% class="TableParagraph" %)
40 **Functions**
41
42
43
44
45
46
47
48
49
50
51 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
52 )))|(((
53 (% class="TableParagraph" %)
54 //date("[date]")//
55 )))|(((
56 (% class="TableParagraph" %)
57 Query date
58 )))
59 |(% colspan="1" %)(% colspan="1" %)
60 (((
61 (% class="TableParagraph" %)
62 //inLearningGroup("//[string]//")//
63 )))|(% colspan="1" %)(% colspan="1" %)
64 (((
65 (% class="TableParagraph" %)
66 Returns TRUE for all members of the learning group with the title [string] of the current course. You can find an example on [[Expertenregeln zur Prüfung von Nutzerrolle und Guppenzugehörigkeit.>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Kurs.Freigabe von Kursen und Kursinhalten.Expertenmodus zur Freigabe innerhalb von Kursen.Anwendungsbeispiele zu Expertenregeln.Expertenregeln zur Prüfung von Nutzerrolle und Guppenzugehörigkeit.WebHome]]
67 )))
68 |(% colspan="1" %)(% colspan="1" %)
69 (((
70 (% class="TableParagraph" %)
71 //inLearningGroup("//[string1]//","//[string2]//")//
72 )))|(% colspan="1" %)(% colspan="1" %)
73 (((
74 (% class="TableParagraph" %)
75 Returns TRUE for all members of the specified learning group [string1] of the course with the specified course ID=[string2].
76 )))
77 |(% colspan="1" %)(% colspan="1" %)
78 (((
79 (% class="TableParagraph" %)
80 //inLearningGroupWaitingList("//[string]//")//
81 )))|(% colspan="1" %)(% colspan="1" %)
82 (((
83 (% class="TableParagraph" %)
84 Returns TRUE for all users on the waiting list of the learning group [string] of the current course.
85 )))
86 |(% colspan="1" %)(% colspan="1" %)
87 (((
88 (% class="TableParagraph" %)
89 //inLearningGroupWaitingList("//[string1]//","//[string2]//"// //)//
90 )))|(% colspan="1" %)(% colspan="1" %)
91 (((
92 (% class="TableParagraph" %)
93 Returns TRUE for all users on the waiting list of the learning group [string1] of the course with the specified course ID=[string2].
94 )))
95 |(% colspan="1" %)(% colspan="1" %)
96 (((
97 (% class="TableParagraph" %)
98 //inRightGroup("//[string]//")//
99 )))|(% colspan="1" %)(% colspan="1" %)
100 (((
101 (% class="TableParagraph" %)
102 Returns TRUE for all members of the right group [string].
103 )))
104 |(% colspan="1" %)(% colspan="1" %)
105 (((
106 (% class="TableParagraph" %)
107 //isLearningGroupFull("//[string]//")//
108 )))|(% colspan="1" %)(% colspan="1" %)
109 (((
110 (% class="TableParagraph" %)
111 Returns the Boolean TRUE (=full) or FALSE (=not full) for the specified learning group in the current course.
112 )))
113 |(% colspan="1" %)(% colspan="1" %)
114 (((
115 (% class="TableParagraph" %)
116 //isLearningGroupFull("//[string1]//","//[string2]//")//
117 )))|(% colspan="1" %)(% colspan="1" %)
118 (((
119 (% class="TableParagraph" %)
120 Returns the Boolean TRUE (=full) or FALSE (=not full) for the specified learning group=[string1] of the course with the course ID=[string2].
121 )))
122 |(% colspan="1" %)(% colspan="1" %)
123 (((
124 (% class="TableParagraph" %)
125 //isUser("//[string]//")//
126 )))|(% colspan="1" %)(% colspan="1" %)
127 (((
128 (% class="TableParagraph" %)
129 Returns TRUE for the user with the user name [string].
130 )))
131 |(% colspan="1" %)(% colspan="1" %)
132 (((
133 (% class="TableParagraph" %)
134 //inLearningArea("//[string]//")//
135 )))|(% colspan="1" %)(% colspan="1" %)
136 (((
137 (% class="TableParagraph" %)
138 Returns TRUE for all members of the groups in the learning area [string] of the current course.
139 )))
140 |(% colspan="1" %)(% colspan="1" %)
141 (((
142 (% class="TableParagraph" %)
143 //inLearningArea("//[string1]//","//[string2]//")//
144 )))|(% colspan="1" %)(% colspan="1" %)
145 (((
146 (% class="TableParagraph" %)
147 Returns TRUE for all members of the groups in the specified learning area [string1] of the course with the specified course ID=[string2].
148 )))
149 |(% colspan="1" %)(% colspan="1" %)
150 (((
151 //inLearningAreaWaitingList("[string1]","[string2]")//
152 )))|(% colspan="1" %)(% colspan="1" %)
153 (((
154 Returns TRUE for all members on the waiting list of the learning group in the learning area [string1] of the course with the specified course ID=[string2].
155 )))
156 |(% colspan="1" %)(% colspan="1" %)
157 (((
158 (% class="TableParagraph" %)
159 //getNumberOfEnrollments("//[string1]*//")//
160 )))|(% colspan="1" %)(% colspan="1" %)
161 (((
162 (% class="TableParagraph" %)
163 Returns TRUE, when the configured number of learning group members is reached in the learning area (string1).
164 )))
165 |(% colspan="1" %)(% colspan="1" %)
166 (((
167 (% class="TableParagraph" %)
168 //isGlobalAuthor(0)//
169 )))|(% colspan="1" %)(% colspan="1" %)
170 (((
171 (% class="TableParagraph" %)
172 Returns TRUE for all members of the OPAL author group.
173 )))
174 |(% colspan="1" %)(% colspan="1" %)
175 (((
176 (% class="TableParagraph" %)
177 //isCourseAdministrator(0)//
178 )))|(% colspan="1" %)(% colspan="1" %)
179 (((
180 (% class="TableParagraph" %)
181 Returns TRUE for all owners of your course (learning resource).
182 )))
183 |(% colspan="1" %)(% colspan="1" %)
184 (((
185 (% class="TableParagraph" %)
186 //isCourseCoach(0)//
187 )))|(% colspan="1" %)(% colspan="1" %)
188 (((
189 (% class="TableParagraph" %)
190 Returns TRUE for all users who supervise a learning group.
191 )))
192 |(% colspan="1" %)(% colspan="1" %)
193 (((
194 (% class="TableParagraph" %)
195 //isGuest(0)//
196 )))|(% colspan="1" %)(% colspan="1" %)
197 (((
198 (% class="TableParagraph" %)
199 Returns TRUE for all users who visit OPAL as guests.
200 )))
201 |(% colspan="1" %)(% colspan="1" %)
202 (((
203 (% class="TableParagraph" %)
204 //isExternalUser(0)//
205 )))|(% colspan="1" %)(% colspan="1" %)
206 (((
207 (% class="TableParagraph" %)
208 Returns TRUE for everyone who uses OPAL as an external user.
209 )))
210 |(% colspan="1" %)(% colspan="1" %)
211 (((
212 (% class="TableParagraph" %)
213 //hasAttribute("//[AttrName]//","//[string]//")//
214 )))|(% colspan="1" %)(% colspan="1" %)
215 (((
216 (% class="TableParagraph" %)
217 Returns TRUE if [string] matches the value of the AAI attribute [AttrName] of the respective user.
218 )))
219 |(% colspan="1" %)(% colspan="1" %)
220 (((
221 (% class="TableParagraph" %)
222 //isInAttribute("//[AttrName]//","//[substring]//")//
223 )))|(% colspan="1" %)(% colspan="1" %)
224 (((
225 (% class="TableParagraph" %)
226 Returns TRUE if [substring] matches a portion of the value of the AAI attribute [AttrName] of the respective user.
227 )))
228 |(% colspan="1" %)(% colspan="1" %)
229 (((
230 (% class="TableParagraph" %)
231 //getUserProperty("//[string]//")//
232 )))|(% colspan="1" %)(% colspan="1" %)
233 (((
234 (% class="TableParagraph" %)
235 Returns the specified user property of the executing user.
236 )))
237 |(% colspan="1" %)(% colspan="1" %)
238 (((
239 (% class="TableParagraph" %)
240 //getPassed("//[integer]//")//
241 )))|(% colspan="1" %)(% colspan="1" %)
242 (((
243 (% class="TableParagraph" %)
244 Returns the Boolean TRUE (=passed) or FALSE (=not passed) from the course element with the specified ID.
245 )))
246 |(% colspan="1" %)(% colspan="1" %)
247 (((
248 (% class="TableParagraph" %)
249 //getScore("//[integer]//")//
250 )))|(% colspan="1" %)(% colspan="1" %)
251 (((
252 (% class="TableParagraph" %)
253 Returns the number of points from the course element with the specified ID.
254 )))
255 |(% colspan="1" %)(% colspan="1" %)
256 (((
257 (% class="TableParagraph" %)
258 //getAttempts("//[integer]//")//
259 )))|(% colspan="1" %)(% colspan="1" %)
260 (((
261 (% class="TableParagraph" %)
262 Returns the number of completed attempts from the course element with the specified ID. The Course elements //Test, Self-test//, //and Survey //(possible return values 0 or 1) show the number of started attempts. Course elements of the type //Task //show the return value of the number of submitted files; Portfolio Tasks the number of submitted Portfolio Tasks. You can find an example here [[Evaluation of the number of attempts>>doc:LMS.Benutzerhandbuch OPAL.Lehren.Kurs.Freigabe von Kursen und Kursinhalten.Expertenmodus zur Freigabe innerhalb von Kursen.Anwendungsbeispiele zu Expertenregeln.Auswertung der Versuchsanzahl.WebHome]].
263 )))
264 |(% colspan="1" %)(% colspan="1" %)
265 (((
266 (% class="TableParagraph" %)
267 //getInitialEnrollmentDate("//[integer]//")//
268 )))|(% colspan="1" %)(% colspan="1" %)
269 (((
270 (% class="TableParagraph" %)
271 Returns the date of the respective course participant's first-time enrolment from the course element //Enrolment// with the specified ID.
272 )))
273 |(% colspan="1" %)(% colspan="1" %)
274 (((
275 (% class="TableParagraph" %)
276 //getRecentEnrollmentDate("//[integer]//")//
277 )))|(% colspan="1" %)(% colspan="1" %)
278 (((
279 (% class="TableParagraph" %)
280 Returns the date of the respective course participant's last enrolment from the course element //Enrolment// with the specified ID.
281 )))
282 |(((
283 (% class="TableParagraph" %)
284 //getInitialCourseLaunchDate(0)//
285 )))|(((
286 (% class="TableParagraph" %)
287 Returns the date of the first course visit of the respective course participant.
288 )))
289 |(((
290 (% class="TableParagraph" %)
291 //getRecentCourseLaunchDate(0)//
292 )))|(((
293 (% class="TableParagraph" %)
294 Returns the date of the last course visit of the respective course participant.
295 )))
296 |(% colspan="1" %)(% colspan="1" %)
297 (((
298 (% class="TableParagraph" %)
299 //getRecentCourseLaunchDate(0)//
300 )))|(% colspan="1" %)(% colspan="1" %)
301 (((
302 (% class="TableParagraph" %)
303 Returns the date of the last course visit of the respective course participant.
304 )))
305 |(% colspan="1" %)(% colspan="1" %)
306 (((
307 (% class="TableParagraph" %)
308 //getPassedWithCourseId("//[integer-1]//","//[integer- 2]//")//
309 )))|(% colspan="1" %)(% colspan="1" %)
310 (((
311 (% class="TableParagraph" %)
312 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].
313 )))
314 |(% colspan="1" %)(% colspan="1" %)
315 (((
316 (% class="TableParagraph" %)
317 //getScoreWithCourseId("//[integer-1]//","//[integer-2]//")//
318 )))|(% colspan="1" %)(% colspan="1" %)
319 (((
320 (% class="TableParagraph" %)
321 Returns the number of points from the course element with the ID=[integer-2] of the course with the ID=[integer-1].
322 )))
323 |(% colspan="1" %)(% colspan="1" %)
324 (((
325 //getMarkWithCourseId(" //[integer-1]//","//[integer-2]//")//
326 )))|(% colspan="1" %)(% colspan="1" %)
327 (((
328 Returns the grade for the course element with ID=[integer-2] of the course with ID=[integer-1].
329 )))
330 |(((
331 (% class="TableParagraph" %)
332 //hasEvaluationCompleted("//KB-ID//")//
333 )))|(((
334 (% class="TableParagraph" %)
335 Returns TRUE for all users who have successfully completed the specified course element.
336 )))
337 |(((
338 (% class="TableParagraph" %)
339 //getNumberOfEnrollments("//[string1]*//")//
340 )))|(((
341 (% class="TableParagraph" %)
342 Returns TRUE, when the configured number of learning group members is reached in the learning area (string1).
343 )))
344 |(((
345 (% class="TableParagraph" %)
346 //getOnyxTestOutcome("//[string1]//","//[string2]//")//
347 )))|(((
348 (% class="TableParagraph" %)
349 Returns the value of the output variable from the ONYX test course element with the specified ID (string1) and the specified output variable (string2). The return value is a number.
350 )))
351 |(% colspan="1" %)(% colspan="1" %)
352 (((
353 (% class="TableParagraph" %)
354 //getOnyxTestOutcomeZK("//[string1]//","//[string2]//")//
355 )))|(% colspan="1" %)(% colspan="1" %)
356 (((
357 (% class="TableParagraph" %)
358 Returns the value of the output variable from the ONYX test course element with the specified ID (string1) and the specified output variable (string2). The return value is a string.
359 )))
360 |(% colspan="1" %)(% colspan="1" %)
361 (((
362 (% class="TableParagraph" %)
363 //getProgress(//"[integer]"//)//
364 )))|(% colspan="1" %)(% colspan="1" %)
365 (((
366 (% class="TableParagraph" %)
367 Returns the progress from the course element with the specified ID as a numerical value between 0 and 100 (percent).
368 )))
369 |(% colspan="1" %)(% colspan="1" %)
370 (((
371 (% class="TableParagraph" %)
372 //isPasswordConfirmed("//[string]")
373 )))|(% colspan="1" %)(% colspan="1" %)
374 (((
375 (% class="TableParagraph" %)
376 Returns TRUE after entering the correct password (string1).
377
378 (% class="TableParagraph" %)
379 Can only be used with course elements which offer a password restriction even in simple mode.
380 )))
381 |(% colspan="1" %)(% colspan="1" %)
382 (((
383 (% class="TableParagraph" %)
384 //comesFrom("//[string]//")//
385 )))|(% colspan="1" %)(% colspan="1" %)
386 (((
387 (% class="TableParagraph" %)
388 Returns TRUE if the user has a linked account to OLAT with the specified system ID.
389 )))
390 |(% rowspan="4" %)(% rowspan="4" %)
391 (((
392 (% class="TableParagraph" %)
393 **Units**
394
395
396
397
398 )))|(% colspan="1" %)(% colspan="1" %)
399 (((
400 (% class="TableParagraph" %)
401 //min//
402 )))|(% colspan="1" %)(% colspan="1" %)
403 (((
404 (% class="TableParagraph" %)
405 Minutes
406 )))
407 |(% colspan="1" %)(% colspan="1" %)
408 (((
409 (% class="TableParagraph" %)
410 //h//
411 )))|(% colspan="1" %)(% colspan="1" %)
412 (((
413 (% class="TableParagraph" %)
414 //h//
415 )))
416 |(% colspan="1" %)(% colspan="1" %)
417 (((
418 (% class="TableParagraph" %)
419 //w//
420 )))|(% colspan="1" %)(% colspan="1" %)
421 (((
422 (% class="TableParagraph" %)
423 Weeks
424 )))
425 |(% colspan="1" %)(% colspan="1" %)
426 (((
427 (% class="TableParagraph" %)
428 //m//
429 )))|(% colspan="1" %)(% colspan="1" %)
430 (((
431 (% class="TableParagraph" %)
432 Months
433 )))
434 |(% rowspan="12" %)(% rowspan="12" %)
435 (((
436 (% class="TableParagraph" %)
437 **Operators**
438
439
440
441
442
443
444
445
446
447
448 \\
449 )))|(% colspan="1" %)(% colspan="1" %)
450 (((
451 (% class="TableParagraph" %)
452 ~=
453 )))|(% colspan="1" %)(% colspan="1" %)
454 (((
455 (% class="TableParagraph" %)
456 equal to
457 )))
458 |(% colspan="1" %)(% colspan="1" %)
459 (((
460 ~!=
461 )))|(% colspan="1" %)(% colspan="1" %)
462 (((
463 not equal
464 )))
465 |(((
466 (% class="TableParagraph" %)
467 ~>
468 )))|(((
469 (% class="TableParagraph" %)
470 greater than
471 )))
472 |(((
473 (% class="TableParagraph" %)
474 <
475 )))|(((
476 (% class="TableParagraph" %)
477 less than
478 )))
479 |(((
480 (% class="TableParagraph" %)
481 ~>=
482 )))|(((
483 (% class="TableParagraph" %)
484 greater than or equal to
485 )))
486 |(((
487 (% class="TableParagraph" %)
488 <=
489 )))|(((
490 (% class="TableParagraph" %)
491 less than or equal to
492 )))
493 |(((
494 (% class="TableParagraph" %)
495 *
496 )))|(((
497 (% class="TableParagraph" %)
498 Multiplication
499 )))
500 |(% colspan="1" %)(% colspan="1" %)
501 (((
502 (% class="TableParagraph" %)
503 /
504 )))|(% colspan="1" %)(% colspan="1" %)
505 (((
506 (% class="TableParagraph" %)
507 Division
508 )))
509 |(% colspan="1" %)(% colspan="1" %)
510 (((
511 (% class="TableParagraph" %)
512 +
513 )))|(% colspan="1" %)(% colspan="1" %)
514 (((
515 (% class="TableParagraph" %)
516 Addition
517 )))
518 |(% colspan="1" %)(% colspan="1" %)
519 (((
520 (% class="TableParagraph" %)
521 -
522 )))|(% colspan="1" %)(% colspan="1" %)
523 (((
524 (% class="TableParagraph" %)
525 Subtraction
526 )))
527 |(% colspan="1" %)(% colspan="1" %)
528 (((
529 %
530 )))|(% colspan="1" %)(% colspan="1" %)
531 (((
532 Modulo
533 )))
534 |(% colspan="1" %)(% colspan="1" %)
535 (((
536 ^
537 )))|(% colspan="1" %)(% colspan="1" %)
538 (((
539 Power
540 )))
541 |(% rowspan="6" %)(% rowspan="6" %)
542 (((
543 (% class="TableParagraph" %)
544 **Booleans**
545 )))|(((
546 (% class="TableParagraph" %)
547 &
548 )))|(((
549 (% class="tw-data-text tw-text-large XcVN5d tw-ta" %)
550 (% lang="en" %)Binary (%%)AND
551 )))
552 |(((
553 (% class="TableParagraph" %)
554 ~|
555 )))|(((
556 (% class="TableParagraph" %)
557 (% lang="en" %)Binary (%%)OR
558 )))
559 |(% colspan="1" %)(% colspan="1" %)
560 (((
561 xor
562 )))|(% colspan="1" %)(% colspan="1" %)
563 (((
564 (% lang="en" %)Binary (%%)XOR
565 )))
566 |(((
567 (% class="TableParagraph" %)
568 !
569 )))|(((
570 (% class="TableParagraph" %)
571 Logical NOT
572 )))
573 |(% colspan="1" %)(% colspan="1" %)
574 (((
575 or
576 )))|(% colspan="1" %)(% colspan="1" %)
577 (((
578 Logical OR
579 )))
580 |(% colspan="1" %)(% colspan="1" %)
581 (((
582 and
583 )))|(% colspan="1" %)(% colspan="1" %)
584 (((
585 Logical AND
586 )))