How to make a combo loke

Godot Version

Godot 3.2.3 not [Godot 4]

Question

using 3 labels (with 3 buttons)

 label1   label2   label3              
 button1  button2  button3

set code1 code2 code2 to  (for demo)   4 1 7
start off with the text of all the labels 0
  if you click on button1 it checks to see if the text of label is 
 equal to code1 
[if they the same]
disable button1 
[if not change the text of label1 to 1 then 2 etc.]
 if it goes less then 0 then set it to 0
 or if above nine set it to 9

the same for for the other 2.




After trail and error(s) I can now

generate random numbers and turn my labels into numbers

var rng = RandomNumberGenerator.new()
var code1
var code2
var code3
var lb
var lb1
var lb2

func _physics_process(delta):
code1 = rng.randi_range(1, 9)
$Label.text
lb = int($Label.text)
print(lb)
print(code1)

func _on_Chnage_1_pressed():
pass

func _on_cahnge_2_pressed():
pass # Replace with function body.

func _on_change_3_pressed():
pass # Replace with function body.

can you please help me compare lb to code1

not mater what i try or where i put it nothing works

You need to present your question/problem in a more understandable way. Otherwise, no one will be able to help you. Check the posting guidelines for the help section: