Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- inc.lua
- --
- -- Usage: <action application="set" data="ext=${lua(inc.lua $1 -30)}" />
- assert(stream, 'this is API command')
- local number = assert(argv[1])
- local delta = argv[2] or 1
- local result = tonumber(number) + tonumber(delta)
- local fmt = string.format("%%.%dd", #number)
- result = string.format(fmt, result)
- stream:write(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement