Good morning everyone,
I couldn’t find any solution, because of that now we don’t have storeEval as a exist command in Kantu.
So, does enyone know how to replace one string inside variable?
BTW it is not a problem with string but with any char inside of variable.
I store date in var “10.09.2020” and I want to delete every single dot and my output should be: “10092020”.
I tried many solutions but finally I get same error:
[error]
Line 24: Error in executeScript_Sandbox code: unexpected token: numeric literal
For someone who wants to fix his own problem, I’ve done it. It was easier than I expected:
check this out:)
“Command”: “executeScript_Sandbox”,
“Target”: “return ${Myvar}.replace(/(\.)/gm, “”)”,
“Value”: “Myvar”
This replaces every dot from var to any other char