Why output = “1”?
var String output = "01|03|02|08|a1"
output = output.split("|").get(1)
Why output = “1”?
var String output = "01|03|02|08|a1"
output = output.split("|").get(1)
Thank you!
output = output.split("\\|").get(1)
Why it does not work in JS transformation?
(function(v){
return v.split('\\|')[0];
})
(input)
In rules - it’s ok
Because now you are working with a javascript string and its methods. This is a different thing to a Java string and its methods.
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.