Use of Number in CL

Hi everyone!

Can you help me with this simple error? I am just learning CL.

It would help to see the warning message (hover over the orange triangle). My guess is that “act” is not the actual name of your button component, or you have the script in the wrong component because the number sink only works in a sketch or graph component.

Thank you for your help.

Yes I had "act:.

Looks like your code is in the wrong place. It should be in the sketch component’s CL, not in the button’s CL. So, copy your code from the button and paste it into the sketch. It should work then.

1 Like

It works. Thank you for your help.