I am new to confluence and user macros.
I have managed to create a simple user script as follows -
## @noparams
$content.getIdAsString()
Which works fine and returns the page id.
However I want to extend the functionality here to only return the last x characters in the string.
How would I do this?