Function wont execute for some reasons

Hello , i coded an elevator , but in my code , when i try to call a function , it simply just wont execute ! i can execute it normally but when i want to in the function , it wont work (problematic function : gotoF1())

cap2

yes it is i checked with a print (and i just know it)

Can you try to provide the gotoF1 function so that we can see what is wrong here?

hold up i think i just understanded

ok im officially stupid, i changed the value before checking it