How can I extract the last character of a variable in KM [as in RIGHT(variable,1) in Filemaker], when the variable is of unknown length?
Would this work for you?
var test = "this is a little test";
var last = test.charAt(test.length -1);
Thank you so much. That's exactly it. Couldn't see for looking!!
1 Like