Toloka documentation

AnyConditionV1

toloka.client.project.template_builder.conditions.AnyConditionV1 | Source code

AnyConditionV1(
    self,
    conditions: Optional[Union[BaseComponent, List[BaseComponent]]] = None,
    *,
    hint: Optional[Any] = None,
    version: Optional[str] = '1.0.0'
)

Checks that at least one of the child conditions is met.

If none of the conditions is met, the component returns false.

If you need all conditions to be met, use the condition.all component. You can also combine these components.

Parameters Description

Parameters Type Description
conditions Optional[Union[BaseComponent, List[BaseComponent]]]

A set of conditions, at least one of which must be met.

hint Optional[Any]

Validation error message that a Toloker will see.