
\starttext

\startluacode
xlsname='A'
interfaces.definecommand ('do'..xlsname, {
   arguments = { { "option", "string" }  },
   macro = function (opt_1)
      if #opt_1>0 then context(opt_1) else context('nothing') end
   end
})
interfaces.definecommand (xlsname, {
   macro = function ()
      context.dosingleempty()
            context['do'..xlsname]()
   end
})
\stopluacode
 
\A[5]

\A

\stoptext


