One error I spotted immediately is in the comparison operator. If you have declared a variable, you must drag that variable from the variable palette and not type in the name.

However, I’m getting an error complaining about compiling for an Arduino/Genuino board which is new.
Update: Changing the board to Arduino Uno and then back to mCore seems to have eliminated the compilation error. However, it never scrolled so I’m not sure what’s up there.
@tec_support: The underlying Arduino environment seemed to be set for the Mega2560/MegaPi and wasn’t getting reset properly. This is in mBlock 3.4.1 for MacOS.