Compiler error

why is this line:

if (roomButton && !roomButtonType)      app.updateSetting("roomButtonType", [type: “enum”, value: “$pushAButton”]);

throwing this on compilation:

Invalid variable name. Must start with a letter but was: “enum” . At [953:92] @ line 953, column 92.

thank you.

I saw an issue not too long ago where the quotes weren't actual quotes, but a strange unicode character.

“enum” vs "enum"

1 Like

that was it … thank you.

1 Like

Download the Hubitat app