Last modified by Anna Paul-Hasenfuss on 26.02.2024

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