you might help me. I want to check in a rule with a ECMA script if a string contains a character.
My rule looks like this:
var test = “Today it rains”;
var x = test.length();
var y = test.includes(“rain”);
But I get following error:
[ERROR] [internal.handler.ScriptActionHandler] - Script execution of rule with UID '387f56338d' failed: TypeError: test.includes is not a function in <eval> at line number 5