DC Current Function: Order of Calculations

Two Drawers DC on attached SKP File. One works as intended with OnClick. Logic/Code on the other, seems to get hung-up on the first animate parameter. Any explanations appreciated.

Regards
Nino

https://forums.sketchup.com/uploads/short-url/5WNgxGVODio2ajduZq8jOHM8wMj.skp