Seeking Help with Dimmer Step-Up Script

I’ve been working with Vera 3 for quite some time now, and I’ve managed to set up a few basic scenes using the interface. However, I’m now trying to create a more advanced script for my dimmer, and I’m running into some issues. I found a step-up script online that works, but I want to modify it so that if the light is off or below 5% dim, the first step goes to 5%, and then each subsequent button press increases the dim level by 15%.

Here’s what I’ve tried so far:

lua
local dID = 23
local level = tonumber(luup.variable_get(“urn:upnp-org:serviceId:Dimming1”,“LoadLevelStatus”,dID),15)
if level < 5 then level = 5
elseif level >= 85 then level = 100
else level = level + 15 end
local args = {}
args[“newLoadlevelTarget”] = level
luup.call_action(“urn:upnp-org:serviceId:Dimming1”, “SetLoadLevelTarget”, args, dID)
end

Unfortunately, every time I save this script, I get a LUA error. I’m not sure what I’m doing wrong, and I’d really appreciate any guidance or suggestions on how to fix this. I’m still learning, so any help would be greatly appreciated!

Thank you in advance for your time and assistance!