
Last character of a string using Betty function?
Is it possible to get the last character of a string using a Betty function in a Text Expression? Or do you have to use Liquid for this?
Example "sometext4". I need to get the 4.
I tried using like this, substring(var:string, -1,1), but didn't work.
Is it possible to get the last character of a string using a Betty function in a Text Expression? Or do you have to use Liquid for this?
Example "sometext4". I need to get the 4.
I tried using like this, substring(var:string, -1,1), but didn't work.
Login to reply