How do I set a text component with a global variable?

Would like to set the text content to a global variable, is this possible?