Remove a part of text stored in variable by counting the number of characters

Hi @admin @Plankton @ulrich

I store a text in variable

STORE | POTATOAPPLEORANGE | Myvar

I want to take the first 10 characters only and save it variable

The variable must updated from “POTATOAPPLEORANGE” to “POTATOAPPL”

What command i must use ?

I need to take the first 10 characters of text.

Thanks for help

Solved with executescript and return ${MyVar}.substr(0,10);

1 Like