BooleanCondition
@MainActor
public struct BooleanCondition<ContentType> : BranchConditionable where ContentType : ContentTypeable
A branch condition that tests a single Boolean value.
Pass a Boolean value to test its value at construction time. A true value passes the condition. Chaining .negated() to it turns the value expectation to false for the condition to pass.
-
The boolean value to test.
Declaration
Swift
@MainActor public let value: Bool -
Declaration
Swift
@MainActor public init(_ value: Bool)Parameters
valueThe boolean value to test. The condition passes when this is
true. -
Declaration
Swift
@MainActor public func evaluate(content: ContentType?) -> Bool
View on GitHub