I want to know that how can I check that what is the value of text in my label.
For eg:
If there is a Label, Label2, a Button and a Button2 as children of Node 2d. The code of the Node 2d says whenever the Button is pressed, a random value from 1 to 3 will be put into the label. And when the Button2 is pressed, the text in the Label is checked and according to the value present in it (i.e. 1, 2 or 3), the text in Label2 is changed to A, B or C.
But I am not able to code for the Button2 being pressed, since I don’t know how to check the text in the Label and compare it.
Please help soon.