Skip to main content

Remove the last n chars

This function removes the last n characters, while previous ones are copied to the output as is.

When you use this function, you must define an extra parameter which is the number of characters to be removed.

The following table shows examples of masked values depending on the input value and the extra parameter.

Input value Extra parameter Example of a masked value Details
Jack "2" Ja The last two characters are removed.
S1000D "4" S1 The last four characters are removed.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!