Multiple set() functions containing variables (custom attribute names)

Hi there! Can anyone tell me if this is the correct syntax for adding multiple set() functions to the onClick behavior?
image

I’m asking because I get the following errors (when clicking “the button”):

ERROR: could not parse formula: a
ERROR: could not parse formula: b
ERROR: could not parse formula: c

Replacing a, b and c with actual values makes the errors disappear. They also disappear if I use only one of the set() functions (not multiple).

Thank you.

You are referencing another object put the attributes a,b,c in that object or use
set(“line!travel”, 0, button!a,button!b,button!c) ,

probably the ruby code assumes the first reference

1 Like