ConditionOperand

public enum ConditionOperand : Encodable
extension ConditionOperand: ExpressibleByFloatLiteral
extension ConditionOperand: ExpressibleByIntegerLiteral
extension ConditionOperand: ExpressibleByStringLiteral
extension ConditionOperand: ExpressibleByStringInterpolation
extension ConditionOperand: ConditionOperandConvertible

An operand for a Condition that can represent either a Number, a Variable, or Text.

  • A variable operand.

    Declaration

    Swift

    case variable(Variable)
  • A number operand.

    Declaration

    Swift

    case number(Number)
  • A text operand.

    Declaration

    Swift

    case text(Text)
  • Encodes this value into the given encoder.

    Throws

    This function throws an error if any values are invalid for the given encoder’s format.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    The encoder to write data to.

  • Creates an instance initialized to the specified floating-point value.

    Attention

    Do not call this initializer directly. Instead, initialize a variable or constant using a floating-point literal.

    Declaration

    Swift

    public init(floatLiteral value: Double)

    Parameters

    value

    The value of the new instance.

  • Creates an instance initialized to the specified integer value.

    Attention

    Do not call this initializer directly. Instead, initialize a variable or constant using an integer literal.

    Declaration

    Swift

    public init(integerLiteral value: Int64)

    Parameters

    value

    The value of the new instance.

  • Creates an instance initialized to the given string value.

    Attention

    Do not call this initializer directly. Instead, initialize a variable or constant using a string literal.

    Declaration

    Swift

    public init(stringLiteral value: String)

    Parameters

    value

    The value of the new instance.

  • Creates an instance from a string interpolation.

    Attention

    Do not call this initializer directly. Instead, initialize a variable or constant using an interpolated string literal.

    Declaration

    Swift

    public init(stringInterpolation: Text.StringInterpolation)

    Parameters

    stringInterpolation

    An instance of StringInterpolation which has had each segment of the string literal appended to it.

  • An operand that represents this value.

    Declaration

    Swift

    public var conditionOperand: ConditionOperand { get }