Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.rules/Condition/Companion/isEmpty

isEmpty

@JvmStatic
fun isEmpty(variable: String): Condition

Returns an Operator that checks whether a value found at key variable would be considered "empty"

"empty" is considered as the following for the different supported input types:

  • String == ""

  • DataList.size == 0

  • DataObject.size == 0

  • value == [DataItem.NULL]

Numeric values are always considered as "not empty".

Parameters

variable

the key to extract the value from for the comparison


@JvmStatic
fun isEmpty(variable: JsonObjectPath): Condition

Returns an Operator that checks whether a value found at key variable would be considered "empty"

"empty" is considered as the following for the different supported input types:

  • String == ""

  • DataList.size == 0

  • DataObject.size == 0

  • value == [DataItem.NULL]

Numeric values are always considered as "not empty".

Parameters

variable

the path to the key to extract the value from for the comparison

Generated by Dokka
(c) Tealium 2026