After doing some more work, I'll got instructed that the labels newExpression and newAction are not allowed to have spaces or other illegal characters in them. Therefore, use camel casing or replace the 'illegals' with underscores (_).
The good thing though to know is that both actions and expression support dot-notation. For example, to set a property prop in an object obj (setup with var obj = {prop:5}; is achieved by a newAction with, for example, label set to set_obj_prop and myVariable set to obj.prop.
Above example may soon undergo enhancements based on that.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
After doing some more work, I'll got instructed that the labels newExpression and newAction are not allowed to have spaces or other illegal characters in them. Therefore, use camel casing or replace the 'illegals' with underscores (_).
The good thing though to know is that both actions and expression support dot-notation. For example, to set a property prop in an object obj (setup with
var obj = {prop:5};
is achieved by a newAction with, for example, label set to set_obj_prop and myVariable set to obj.prop.Above example may soon undergo enhancements based on that.
A very cool thing!