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

Companion

object Companion

Functions

contains
Link copied to clipboard
@JvmStatic
fun contains(ignoreCase: Boolean, variable: JsonObjectPath, string: String): Condition
@JvmStatic
fun contains(ignoreCase: Boolean, variable: String, string: String): Condition

Returns an Operator that checks whether the value found at key variable, as a string, contains the string within it.

doesNotContain
Link copied to clipboard
@JvmStatic
fun doesNotContain(ignoreCase: Boolean, variable: JsonObjectPath, string: String): Condition
@JvmStatic
fun doesNotContain(ignoreCase: Boolean, variable: String, string: String): Condition

Returns an Operator that checks whether the value found at key variable, as a string, does not contain the string within it.

doesNotEndWith
Link copied to clipboard
@JvmStatic
fun doesNotEndWith(ignoreCase: Boolean, variable: JsonObjectPath, suffix: String): Condition
@JvmStatic
fun doesNotEndWith(ignoreCase: Boolean, variable: String, suffix: String): Condition

Returns an Operator that checks whether the value found at key variable, as a string, does not end with the given suffix.

doesNotEqual
Link copied to clipboard
@JvmStatic
fun doesNotEqual(ignoreCase: Boolean, variable: JsonObjectPath, target: String): Condition
@JvmStatic
fun doesNotEqual(ignoreCase: Boolean, variable: String, target: String): Condition

Returns an Operator that checks whether the value found at key variable is not equal to the given target.

doesNotStartWith
Link copied to clipboard
@JvmStatic
fun doesNotStartWith(ignoreCase: Boolean, variable: JsonObjectPath, prefix: String): Condition
@JvmStatic
fun doesNotStartWith(ignoreCase: Boolean, variable: String, prefix: String): Condition

Returns an Operator that checks whether the value found at key variable, as a string, does not start with the given prefix.

endsWith
Link copied to clipboard
@JvmStatic
fun endsWith(ignoreCase: Boolean, variable: JsonObjectPath, suffix: String): Condition
@JvmStatic
fun endsWith(ignoreCase: Boolean, variable: String, suffix: String): Condition

Returns an Operator that checks whether the value found at key variable, as a string, ends with the given suffix.

isDefined
Link copied to clipboard
@JvmStatic
fun isDefined(variable: JsonObjectPath): Condition
@JvmStatic
fun isDefined(variable: String): Condition

Returns an Operator that checks whether a value can be found at key variable.

isEmpty
Link copied to clipboard
@JvmStatic
fun isEmpty(variable: JsonObjectPath): Condition
@JvmStatic
fun isEmpty(variable: String): Condition

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

isEqual
Link copied to clipboard
@JvmStatic
fun isEqual(ignoreCase: Boolean, variable: JsonObjectPath, target: String): Condition
@JvmStatic
fun isEqual(ignoreCase: Boolean, variable: String, target: String): Condition

Returns an Operator that checks whether the value found at key variable is equal to the given target.

isGreaterThan
Link copied to clipboard
@JvmStatic
fun isGreaterThan(orEqual: Boolean, variable: JsonObjectPath, number: String): Condition
@JvmStatic
fun isGreaterThan(orEqual: Boolean, variable: String, number: String): Condition

Returns an Operator that checks whether the numeric value found at key variable, is greater than the numeric value given by number.

isLessThan
Link copied to clipboard
@JvmStatic
fun isLessThan(orEqual: Boolean, variable: JsonObjectPath, number: String): Condition
@JvmStatic
fun isLessThan(orEqual: Boolean, variable: String, number: String): Condition

Returns an Operator that checks whether the numeric value found at key variable, is less than the numeric value given by number.

isNotDefined
Link copied to clipboard
@JvmStatic
fun isNotDefined(variable: JsonObjectPath): Condition
@JvmStatic
fun isNotDefined(variable: String): Condition

Returns an Operator that checks whether a value can not be found at key variable.

isNotEmpty
Link copied to clipboard
@JvmStatic
fun isNotEmpty(variable: JsonObjectPath): Condition
@JvmStatic
fun isNotEmpty(variable: String): Condition

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

regularExpression
Link copied to clipboard
@JvmStatic
fun regularExpression(variable: JsonObjectPath, regex: String): Condition
@JvmStatic
fun regularExpression(variable: String, regex: String): Condition

Returns an Operator that checks whether the value found at key variable, is matched by the given regex string.

startsWith
Link copied to clipboard
@JvmStatic
fun startsWith(ignoreCase: Boolean, variable: JsonObjectPath, prefix: String): Condition
@JvmStatic
fun startsWith(ignoreCase: Boolean, variable: String, prefix: String): Condition

Returns an Operator that checks whether the value found at key variable, as a string, starts with the given prefix.

Generated by Dokka
(c) Tealium 2026