Operator

public enum Operator : Equatable

The operator used to evaluate a condition against a variable.

  • An operator that matches if the variable is defined.

    Declaration

    Swift

    case isDefined
  • An operator that matches if the variable is not defined.

    Declaration

    Swift

    case isNotDefined
  • An operator that matches if the variable is considered to be empty.

    Declaration

    Swift

    case isEmpty
  • An operator that matches if the variable is considered not to be empty.

    Declaration

    Swift

    case isNotEmpty
  • An operator that matches if the variable is equal to the filter. Numeric comparison is attempted first, and then falls back to string equality if either the DataItem or filter cannot be parsed as a Double.

    Declaration

    Swift

    case equals(_: Bool)

    Parameters

    ignoreCase

    If true the equality check is case insensitive.

  • An operator that matches if the variable is not equal to the filter. Numeric comparison is attempted first, and then falls back to string equality if either the DataItem or filter cannot be parsed as a Double.

    Declaration

    Swift

    case notEquals(_: Bool)

    Parameters

    ignoreCase

    If true the equality check is case insensitive.

  • An operator that matches if the numeric variable is greater than filter. Both are converted to Double.

    Declaration

    Swift

    case greaterThan(_: Bool)

    Parameters

    orEqual

    If true the comparison returns true for equal as well.

  • An operator that matches if the numeric variable is less than filter. Both are converted to Double.

    Declaration

    Swift

    case lessThan(_: Bool)

    Parameters

    orEqual

    If true the comparison returns true for equal as well.

  • An operator that matches if the variable, converted to a string, contains the filter.

    Declaration

    Swift

    case contains(_: Bool)

    Parameters

    ignoreCase

    If true the contains check is case insensitive.

  • An operator that matches if the variable, converted to a string, does not contain the filter.

    Declaration

    Swift

    case notContains(_: Bool)

    Parameters

    ignoreCase

    If true the contains check is case insensitive.

  • An operator that matches if the variable, converted to a string, ends with the filter.

    Declaration

    Swift

    case endsWith(_: Bool)

    Parameters

    ignoreCase

    If true the endsWith check is case insensitive.

  • An operator that matches if the variable, converted to a string, doesn’t end with the filter.

    Declaration

    Swift

    case notEndsWith(_: Bool)

    Parameters

    ignoreCase

    If true the endsWith check is case insensitive.

  • An operator that matches if the variable, converted to a string, starts with the filter.

    Declaration

    Swift

    case startsWith(_: Bool)

    Parameters

    ignoreCase

    If true the startsWith check is case insensitive.

  • An operator that matches if the variable, converted to a string, doesn’t start with the filter.

    Declaration

    Swift

    case notStartsWith(_: Bool)

    Parameters

    ignoreCase

    If true the startWith check is case insensitive.

  • An operator that matches using a regex.

    The regex needs to follow the NSRegularExpression format: https://developer.apple.com/documentation/foundation/nsregularexpression

    Declaration

    Swift

    case regex