• Help
  • Tealium for Swift 3.x
  • Tealium for iOS (Swift) SDK Reference
    • Tealium
      • Tealium
      • TealiumConfig
      • TealiumError
      • TealiumInstanceManager
      • CoreSettings
      • CoreSettingsBuilder
    • Modules
      • Modules
      • – Types
      • AppData
      • Collect
      • ConnectivityData
      • DataLayer
      • DeepLinkHandler
      • DeviceData
      • Lifecycle
      • MomentsAPI
      • TealiumData
      • TimeData
      • Trace
      • CustomModules
    • AppData Module
      • AppDataSettingsBuilder
    • Collect Module
      • CollectSettingsBuilder
    • ConnectivityData Module
      • ConnectivityDataSettingsBuilder
    • Consent
      • ConsentConfigurationBuilder
      • ConsentDecision
      • – DecisionType
      • CMPAdapter
    • DataLayer Module
      • DataLayerSettingsBuilder
    • DeepLinkHandler Module
      • DeepLinkSettingsBuilder
      • Referrer
    • DeviceData Module
      • DeviceDataSettingsBuilder
    • Lifecycle Module
      • LifecycleDataTarget
      • LifecycleError
      • LifecycleEvent
      • LifecycleSettingsBuilder
    • MomentsAPI Module
      • MomentsAPIError
      • MomentsAPIRegion
      • MomentsAPISettingsBuilder
      • EngineResponse
    • TealiumData Module
      • TealiumDataSettingsBuilder
    • TimeData Module
      • TimeDataSettingsBuilder
    • Trace Module
      • TraceSettingsBuilder
    • Rules
      • Rule
      • RuleModuleSettingsBuilder
      • RuleNotFoundError
      • Condition
      • – Operator
      • ConditionEvaluationError
      • InvalidMatchError
    • Barriers
      • Barriers
      • Barrier
      • BarrierFactory
      • BarrierRegistrar
      • BarrierScope
      • BarrierSettingsBuilder
      • BarrierState
      • BatchingBarrierSettingsBuilder
      • ConfigurableBarrier
      • ConnectivityBarrierSettingsBuilder
    • Transformations
      • TransformationOperation
      • TransformationScope
      • TransformationSettings
    • Module
      • Module
      • BasicModule
      • BasicModuleFactory
      • ModuleError
      • ModuleFactory
      • ModuleProxy
      • ModuleSettingsBuilder
      • ModuleStoreProvider
      • ModulesManager
      • MultipleInstancesModuleSettingsBuilder
      • Collector
      • CollectorSettingsBuilder
      • Dispatcher
      • DispatcherSettingsBuilder
      • TealiumContext
      • Transformer
      • TransformerRegistrar
      • Mappings
      • – VariableOptions
      • – ConstantOptions
      • – CommandOptions
      • MappingsBuilder
    • Data
      • DataInput
      • DataInputConvertible
      • DataItem
      • DataItemConverter
      • DataItemExtractor
      • DataObject
      • DataObjectConvertible
      • DataStore
      • DataStoreEdit
      • DataStoreEditor
      • DatabaseError
      • Expiry
      • Dispatch
      • DispatchContext
      • – Source
      • DispatchType
      • JSONArrayPath
      • JSONObjectPath
      • JSONPath
      • JSONPathExtractable
      • JSONPathParseError
      • ArrayRoot
      • ObjectRoot
      • PathRoot
      • ReferenceContainer
      • StringContainer
      • ValueContainer
      • AnyCodable
      • AnyDecodable
      • AnyEncodable
    • PubSub
      • Observable
      • ObservableConvertible
      • ObservableState
      • Observables
      • BasePublisher
      • Publisher
      • ReplaySubject
      • StateSubject
      • Subject
      • Single
      • SingleResult
      • CompositeDisposable
      • Disposable
      • Disposables
      • Subscribable
      • ValueExtractor
    • Network
      • NetworkClient
      • NetworkConfiguration
      • NetworkError
      • NetworkHelper
      • NetworkHelperProtocol
      • NetworkResponse
      • NetworkResult
      • ConnectivityManager
      • ConnectivityManagerProtocol
      • HTTPClient
      • DefaultInterceptor
      • InterceptorManager
      • InterceptorManagerProtocol
      • RequestInterceptor
      • RefreshParameters
      • ResourceRefresher
      • ResourceCacher
      • RetryPolicy
      • URL
      • URLComponents
      • URLConvertible
      • ErrorCooldown
      • ObjectResponse
      • ObjectResult
    • Logging
      • LogCategory
      • LogHandler
      • LogLevel
      • – Minimum
      • LoggerProtocol
      • TealiumLoggerType
      • OSSignpostIntervalState
      • SignpostStateWrapper
      • TealiumSignpostInterval
      • TealiumSignposter
    • Other Classes
      • ApplicationStatusListener
      • RepeatingTimer
      • TealiumDispatchGroup
      • TealiumQueue
      • TemplateProcessor
    • Other Enumerations
      • LenientConverters
      • TealiumConstants
      • TealiumDataKey
      • TimeUnit
    • Other Extensions
      • Array
      • Bool
      • Decimal
      • Dictionary
      • Double
      • Float
      • Int
      • Int64
      • NSNull
      • NSNumber
      • Optional
      • Result
      • String
      • [String: DataInput]
      • [String: DataItem]
    • Other Functions
      • +(_:_:)
      • +=(_:_:)
    • Other Protocols
      • ErrorEnum
      • ErrorExtractor
      • ErrorWrapping
      • QueueMetrics
      • Repeater
      • SessionRegistry
      • Tracker
    • Other Structures
      • ApplicationStatus
      • – StatusType
      • Session
      • – Status
      • TimeFrame
      • TrackResult
      • – Status
    • Other Type Aliases
      • InitializationResult
      • TrackResultCompletion
  • Tealium for Swift SDK Reference
  • > Rules
  • > TealiumPrismCore.Condition

Operator Enumeration Reference

public enum Operator : Equatable

The operator used to evaluate a condition against a variable.

  • isDefined

    An operator that matches if the variable is defined.

    Declaration

    Swift

    case isDefined
  • isNotDefined

    An operator that matches if the variable is not defined.

    Declaration

    Swift

    case isNotDefined
  • isEmpty

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

    Declaration

    Swift

    case isEmpty
  • isNotEmpty

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

    Declaration

    Swift

    case isNotEmpty
  • equals(_:)

    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)
    Parameter Description
    ignoreCase

    If true the equality check is case insensitive.

  • notEquals(_:)

    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)
    Parameter Description
    ignoreCase

    If true the equality check is case insensitive.

  • greaterThan(_:)

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

    Declaration

    Swift

    case greaterThan(_: Bool)
    Parameter Description
    orEqual

    If true the comparison returns true for equal as well.

  • lessThan(_:)

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

    Declaration

    Swift

    case lessThan(_: Bool)
    Parameter Description
    orEqual

    If true the comparison returns true for equal as well.

  • contains(_:)

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

    Declaration

    Swift

    case contains(_: Bool)
    Parameter Description
    ignoreCase

    If true the contains check is case insensitive.

  • notContains(_:)

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

    Declaration

    Swift

    case notContains(_: Bool)
    Parameter Description
    ignoreCase

    If true the contains check is case insensitive.

  • endsWith(_:)

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

    Declaration

    Swift

    case endsWith(_: Bool)
    Parameter Description
    ignoreCase

    If true the endsWith check is case insensitive.

  • notEndsWith(_:)

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

    Declaration

    Swift

    case notEndsWith(_: Bool)
    Parameter Description
    ignoreCase

    If true the endsWith check is case insensitive.

  • startsWith(_:)

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

    Declaration

    Swift

    case startsWith(_: Bool)
    Parameter Description
    ignoreCase

    If true the startsWith check is case insensitive.

  • notStartsWith(_:)

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

    Declaration

    Swift

    case notStartsWith(_: Bool)
    Parameter Description
    ignoreCase

    If true the startWith check is case insensitive.

  • regex

    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

© 2026 Tealium. All rights reserved. (Last updated: 2026-02-19)

Generated by jazzy ♪♫ v0.15.4, a Realm project.