AnySatisfyCondition

@MainActor
public struct AnySatisfyCondition<ContentType> : BranchConditionable where ContentType : ContentTypeable

A branch condition that passes when at least one of its child conditions passes (logical OR).

Use .negated() on an AnySatisfyCondition to select a path when none of the child conditions match.

  • The child conditions, at least one of which must pass for this condition to pass.

    Declaration

    Swift

    @MainActor
    public let conditions: [any BranchConditionable<ContentType>]
  • Declaration

    Swift

    @MainActor
    public init(conditions: [any BranchConditionable<ContentType>])

    Parameters

    conditions

    The individual branch conditions to be tested.

  • Declaration

    Swift

    @MainActor
    public func evaluate(content: ContentType?) -> Bool