[Solver] Disable and enable button

Why my getTemp() function doesn’t work? Why n change in my if-control?
https://codepen.io/stefalber/pen/pdMNNw

@camperextraordinaire i tried it, but still doesn’t work.

@camperextraordinaire now i changed my code and my if-control but doesn’t work and i don’t understand why.

I solved. I remove if-control and just put two new function.