Condition
public enum Condition
extension Condition: Encodable
The evaluated logic that determines which branch to follow. Evaluated by If shortcuts.
-
This condition evaluates to true if the variable equals the condition operand.
Declaration
Swift
case `is`(Variable, ConditionOperand) -
This condition evaluates to true if the variable does not equal the condition operand.
Declaration
Swift
case isNot(Variable, ConditionOperand) -
This condition evaluates to true if the variable has any value.
Declaration
Swift
case hasAnyValue(Variable) -
This condition evaluates to true if the variable does not have any value.
Declaration
Swift
case doesNotHaveAnyValue(Variable) -
This condition evaluates to true if the variable is greater than the condition operand.
Declaration
Swift
case isGreaterThan(Variable, ConditionNumberOperand) -
This condition evaluates to true if the variable is greater than or equal to the condition operand.
Declaration
Swift
case isGreaterThanOrEqualTo(Variable, ConditionNumberOperand) -
This condition evaluates to true if the variable is less than the condition operand.
Declaration
Swift
case isLessThan(Variable, ConditionNumberOperand) -
This condition evaluates to true if the variable is less than or equal to the condition operand.
Declaration
Swift
case isLessThanOrEqualTo(Variable, ConditionNumberOperand) -
This condition evaluates to true if the variable is between the two condition operands.
Declaration
Swift
case isBetween(Variable, ConditionNumberOperand, ConditionNumberOperand) -
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) throwsParameters
encoderThe encoder to write data to.
View on GitHub
Condition Enumeration Reference