Conditions
-
Represents a value that can be converted into a
See moreConditionNumberOperand, such as aNumberorVariable.Declaration
Swift
public protocol ConditionNumberOperandConvertible -
Declaration
Swift
public enum ConditionOperand : Encodableextension ConditionOperand: ExpressibleByFloatLiteralextension ConditionOperand: ExpressibleByIntegerLiteralextension ConditionOperand: ExpressibleByStringLiteralextension ConditionOperand: ExpressibleByStringInterpolationextension ConditionOperand: ConditionOperandConvertible -
Represents a value that can be converted into a
See moreConditionOperand, such as aNumber,Variable,Text, orString.Declaration
Swift
public protocol ConditionOperandConvertible -
Declaration
Swift
public enum ConditionTextOperandextension ConditionTextOperand: ExpressibleByStringLiteralextension ConditionTextOperand: ExpressibleByStringInterpolationextension ConditionTextOperand: ConditionTextOperandConvertible -
Represents a value that can be converted into a
See moreConditionTextOperand, such as aVariable,Text, orString.Declaration
Swift
public protocol ConditionTextOperandConvertible
-
Makes a condition that evaluates to true if the left-hand variable equals the right-hand condition operand.
Declaration
Swift
public func == (lhs: Variable, rhs: ConditionOperandConvertible) -> ConditionParameters
lhsA variable.
rhsA value that can be converted to a condition operand
Return Value
An equality condition.
-
Makes a condition that evaluates to true if the left-hand variable does not equal the right-hand condition operand.
Declaration
Swift
public func != (lhs: Variable, rhs: ConditionOperandConvertible) -> ConditionParameters
lhsA variable.
rhsA value that can be converted to a condition operand
Return Value
An inequality condition.
-
Makes a condition that evaluates to true if the left-hand variable is greater than the right-hand condition operand.
Declaration
Swift
public func < (lhs: Variable, rhs: ConditionNumberOperandConvertible) -> ConditionParameters
lhsA variable.
rhsA value that can be converted to a condition operand
Return Value
A “greater than” condition.
-
Makes a condition that evaluates to true if the left-hand variable is greater than or equal to the right-hand condition operand.
Declaration
Swift
public func <= (lhs: Variable, rhs: ConditionNumberOperandConvertible) -> ConditionParameters
lhsA variable.
rhsA value that can be converted to a condition operand
Return Value
A “greater than or equal to” condition.
-
Makes a condition that evaluates to true if the left-hand variable is less than the right-hand condition operand.
Declaration
Swift
public func > (lhs: Variable, rhs: ConditionNumberOperandConvertible) -> ConditionParameters
lhsA variable.
rhsA value that can be converted to a condition operand
Return Value
A “less than” condition.
-
Makes a condition that evaluates to true if the left-hand variable is less than or equal to the right-hand condition operand.
Declaration
Swift
public func >= (lhs: Variable, rhs: ConditionNumberOperandConvertible) -> ConditionParameters
lhsA variable.
rhsA value that can be converted to a condition operand
Return Value
A “less than or equal to” condition.
-
Makes a condition that evaluates to true if the left-hand variable falls between the range in the right-hand condition operand.
Parameters
lhsA variable.
rhsA value that can be converted to a condition operand
Return Value
An “is between” condition.
-
Makes a condition that evaluates to true if the left-hand variable falls between the range in the right-hand condition operand.
Declaration
Swift
public func ~= (lhs: Variable, rhs: (lowerBound: ConditionNumberOperandConvertible, upperBound: ConditionNumberOperandConvertible)) -> ConditionParameters
lhsA variable.
rhsA value that can be converted to a condition operand
Return Value
An “is between” condition.
View on GitHub
Conditions Reference