You don't need to check the variable on every tick - move events #4,5 on you screenshot inside event #3, as sub-events.
I don't have much experience with Firebase and your code seems ok to me. Maybe the data is not received from the server, or it's in lowercase. Try running the game in Debug Mode and you will see if the variable changes.