Conditions
-
Represents a value that can be converted into a
See moreConditionNumberOperand
, such as aNumber
orVariable
.Declaration
Swift
public protocol ConditionNumberOperandConvertible
-
Declaration
Swift
public enum ConditionOperand : Encodable
extension ConditionOperand: ExpressibleByFloatLiteral
extension ConditionOperand: ExpressibleByIntegerLiteral
extension ConditionOperand: ExpressibleByStringLiteral
extension ConditionOperand: ExpressibleByStringInterpolation
extension 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 ConditionTextOperand
extension ConditionTextOperand: ExpressibleByStringLiteral
extension ConditionTextOperand: ExpressibleByStringInterpolation
extension 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) -> Condition
Parameters
lhs
A variable.
rhs
A 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) -> Condition
Parameters
lhs
A variable.
rhs
A 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) -> Condition
Parameters
lhs
A variable.
rhs
A 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) -> Condition
Parameters
lhs
A variable.
rhs
A 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) -> Condition
Parameters
lhs
A variable.
rhs
A 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) -> Condition
Parameters
lhs
A variable.
rhs
A 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
lhs
A variable.
rhs
A 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)) -> Condition
Parameters
lhs
A variable.
rhs
A value that can be converted to a condition operand
Return Value
An “is between” condition.