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

startsWith

@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.

Parameters

ignoreCase

true if the comparison should be done in a case-insensitive way; else false

variable

the key to extract the value from for the comparison

prefix

the target value to check against


@JvmStatic
fun startsWith(ignoreCase: Boolean, variable: JsonObjectPath, prefix: String): Condition

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

Parameters

ignoreCase

true if the comparison should be done in a case-insensitive way; else false

variable

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

prefix

the target value to check against

Generated by Dokka
(c) Tealium 2026