how to store a nodes property into a variable

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Hade_dev
var txt = self.bbcode_text
    
    
    
   func _ready():
    	txt = "no"
    	pass

this is what i tried, am pretty new with this stuff

:bust_in_silhouette: Reply From: rossunger

I’m not sure I understand your question correctly… but if I do…

then what you can do is you store the property name as a string
e.g. myProperty = "bbcode_text"

and then you can use self[myProperty] = "my property's new value"