How can I compare label with name locators on iOS?

Hello,

I have the below in the inspector.
name: Balance £12,305
type: UIAStaticText
value:
label: Balance £12,305

I want to compare label with name text copy and value may change every time. I couldn’t find any proper solution.
could someone help please?

thanks in advance

@New_Tester try:

String myLabel = yourElement.getAttribute("label");