New topic Closed topic
avatar image
0
Last character of a string using Betty function?
By Created , last editted

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.

Answers
Sort by:

This topic is closed.