Print and use a number

Hello friends
I have an order here, I want to use this number surrounded by a square.
I want the system to recognize it, keep it in a variable and if it is then it will take a certain action.
Can anyone help me with this?
Thank you

Please post the underlying HTML, and anything else you think is relevant. Follow this advice:


try to use getAttribute keyword
val = WebUI.getAttribute(findTestObject('<object xpath>'), 'value')
println val