startsWith

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


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