Posted 27 February 2018 - 05:47 PM
                I've been trying to find information on exactly WHAT the "…" input does, and I couldn't find anything about it.
(I tried searching it on the forums, but "…" is counted as less than 4 chars. ¯\_(ツ)_/¯)
Anyways, the thing I know about this 'operator'(?) is that it is used for getting the user's input on arguments passed with a program through the shell, like the following:
                
                    (I tried searching it on the forums, but "…" is counted as less than 4 chars. ¯\_(ツ)_/¯)
Anyways, the thing I know about this 'operator'(?) is that it is used for getting the user's input on arguments passed with a program through the shell, like the following:
local tArgs = {...}
local function allArgs()
  for i=1,#tArgs do
	local temp = ""
	if tArgs[i] ~= nil then
	  temp = temp..tostring(tArgs[i])
	end
  end
  return temp
end
print("You executed this program with the arguments "..allArgs())
function tokenise( ... )
  local sLine, tWords, bQuoted = table.concat( { ... }, " " ), {}, false
  for match in string.gmatch( sLine .. "\"", "(.-)\"" ) do
	if bQuoted then
	  table.insert( tWords, match )
	else
	  for m in string.gmatch( match, "[^ \t]+" ) do
		table.insert( tWords, m )
	  end
	end
	bQuoted = not bQuoted
  end
  return tWords
end
Edited on 27 February 2018 - 04:48 PM
                
             
        