expr
A function that represents a condition as a boolean expression. This function represents the root of a condition that is not nested in a parent condition, unlike the ScopeActivationCondition.expr function.
Return
A ScopeActivationCondition object representing the noneOf-condition, which can be evaluated directly.
Parameters
A lambda expression that is executed in the context of the expr-condition object to generate a boolean value representing an activation condition.
The expr method is an extension function for the ScopeActivationCondition interface, allowing you to define a new scope activation condition as a boolean expression that indicates whether it can be activated. This method is executed in the context of the parent condition because it is an extension function and will register the body lambda function as a new expr-condition with the parent condition it is nested in.
Parameters
A lambda expression that is executed in the context of the expr-condition to generate a boolean value representing an activation condition.