Comparison

public enum Comparison

Defines a comparison between two values.

  • Both values are equal.

    Declaration

    Swift

    case equalTo
  • The values are not equal.

    Declaration

    Swift

    case notEqualTo
  • The first value is less than the second.

    Declaration

    Swift

    case lessThan
  • The first value is greater than the second.

    Declaration

    Swift

    case greaterThan
  • The first value is less than or equal to the second one.

    Declaration

    Swift

    case lessThanOrEqualTo
  • The first value is greater than or equal to the second one.

    Declaration

    Swift

    case greaterThanOrEqualTo
  • The second value is contained inside the first.

    Declaration

    Swift

    case contains
  • and

    Testing to see if both values are true.

    Declaration

    Swift

    case and
  • or

    Testing to see if either value is true.

    Declaration

    Swift

    case or