Expert rule for checking different passwords

Last modified by Anna Paul-Hasenfuss on 25.06.2025

In the course editor, access to a course element can be protected with a password. You can use an expert rule to extend this password check. That way, you can use a list of passwords instead of checking a single password.

General syntax

Rule example

Rule result

isPasswordConfirmed("[integer]")

isPasswordConfirmed("abc") or isPasswordConfirmed("def") or isPasswordConfirmed("ghi")The course element is accessible when the user enters one of the passwords (“abc,” “def,” or “ghi”) in the field.