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

isNotEmpty

@JvmStatic
fun isNotEmpty(variable: String): Condition

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

"not 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 isNotEmpty(variable: JsonObjectPath): Condition

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

"not 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