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

endsWith

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

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

suffix

the target value to check against


@JvmStatic
fun endsWith(ignoreCase: Boolean, variable: JsonObjectPath, suffix: String): Condition

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

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

suffix

the target value to check against

Generated by Dokka
(c) Tealium 2026