anyOf

A function that represents an "or"-condition (disjunction of sub-conditions). This function represents the root of a condition that is not nested in a parent condition, unlike the ScopeActivationCondition.anyOf function.

Return

A ScopeActivationCondition object representing the anyOf-condition, which can be evaluated directly.

Parameters

body

A lambda expression that is executed in the context of the anyOf-condition object to define child conditions.


The anyOf method is an extension function for the ScopeActivationCondition interface, allowing you to define a new scope activation condition using the "or"-condition (conjunction of sub-conditions) logic. 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 anyOf-condition with the parent condition it is nested in.

Parameters

body

A lambda expression that is executed in the context of the anyOf-condition to define child conditions.