-
• #2
I'm afraid I'm not sure about this - you'd hope that functions would have access to the scope in which they were defined. Perhaps you could ask on Blockly's forum? https://groups.google.com/forum/#!forum/blockly
I'm afraid I'm not sure about this - you'd hope that functions would have access to the scope in which they were defined. Perhaps you could ask on Blockly's forum? https://groups.google.com/forum/#!forum/blockly
Hi, I'm creating my own Blocks in Blockly by editing blockly_espruino.js. I can create global variables at the top of the file like
that are accessible in functions like
but these variables cannot be accessed in functions like
How do I create global variables that I can then edit inside the JavaScript that defines what the block does?
Thanks,
Rehman