currently trying to have my player open a door, and have it stay open until they interact with it again to close it. Whatever I am doing currently isn't working and the door stays closed. I've clued into the fact both bits of code are running one after another and overwriting each other but I don't know how to fix it
if Input.is_action_just_pressed("Inspect") and stall1CvO == true:
stall1CvO = !stall1CvO
$StallCol/Stall1ColC.disabled = true
$StallCol/Stall1ColO.disabled = false
$StallAnim1.play("Open")
print("opening stall 1")
if Input.is_action_just_pressed("Inspect") and stall1CvO == false:
stall1CvO = !stall1CvO
$StallCol/Stall1ColC.disabled = false
$StallCol/Stall1ColO.disabled = true
$StallAnim1.play("Close")
print("closing stall 1")```