One way to start debugging your blocks is to display messages along with a wait block like this, and then see where the “undefined” value occurs:
That will help narrow down the blocks you need to work on.
One way to start debugging your blocks is to display messages along with a wait block like this, and then see where the “undefined” value occurs:
That will help narrow down the blocks you need to work on.