how do I make the value of a variable set the text of a label?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tatubr

how do I make the value of a variable set the text of a label?

:bust_in_silhouette: Reply From: petermoyle

Do you mean set the text of the label to be the value of the variable?

get_node("Label").text = str(variable)

Or

Do you mean display certain text based on value of the variable?

if variable == 0:
	get_node("Label").text = "Hello"