Set a specific value to a Control

I tried some things but (sorry about that) am always unsure about the correct formatting. I tried:

function setDefault(valueobject, value)
local ctl = controls.get(1)
local msgId = ctl:getValue(“value”):getMessage()
local msgId:setValue(61)
end

The error shows:

15:22:41.699 loadLuaModule: error loading file: filename=ctrlv2/slots/p000.lua, error=ctrlv2/slots/p000.lua:5: unexpected symbol near ‘!’

I don’t even see a “!” somewhere. Sorry again. :man_shrugging:t3: