how do i assign a value (get text) into a variable?

how do i use the text i get using “Get Text” action? and how do i assign it into a variable already created?

 

after getting a text, how do i split the string using a word in it? and how do i use it after?

1. existingVariableName = findObject.getText()
2. As far as I know there is no built in option to do trimming you would have to manually do existingVariableName = existingVariableName.substring(0, 4).trim()
In the above code it’ll take the first four chracters from the string.

1. existingVariableName = findOject.gettext()
2. As far as I know there is no built in option to do trimming you would have to manually do existingVariableName = existingVariableName.substring(0, 4).trim()
In the above code it’ll take the first four chracters from the