In rules, how do I check if a given variable (string) “ends with” or “starts with” a specified value? (I know about “contains”, but that does not completely solve it)
var String someVariable = "Somebody once told me"
if (someVariable.startsWith("Somebody")) {
// do something
}
if (someVariable.endsWith("me")) {
// do something else
}
Cheers