Slider onchange issue

I’m using v1.2.19.2 and this code:

166 :slider{
167	id = "r8",
168	label = "Red  ",
169	min = 0,
170	max = 255,
171	value = 0
172	onchange = function()
173		swatchUpdate()
174	end
175 }

Produces this error:

‘}’ expected (to close ‘{’ at line 166) near ‘onchange’

How do we use the onchange event?

You’re missing a comma after value = 0, could that be the issue?

1 Like

Yes! Thank you. I wish I could heart your reply 100 times. Lol

1 Like