Module:Explode: Difference between revisions

From StrategyWiki, the video game walkthrough and strategy guide wiki
325 bytes added ,  8 August 2014
testing, revision 1
(string.find plain parameter should be optional)
(testing, revision 1)
Line 5: Line 5:


function p.explode(frame)
function p.explode(frame)
--[[
By Notmyhandle
args:
1:string
2:delimiter character (divider character)
]]--
  if (frame.args[1]=='') then return false end
  local rightside = 0
  --capture the starting and ending index
  s,e = string.find(frame.args[1],frame.args[2],0,true)
  print(s)
  print(e)
  return rightside
end
function p.explode2(frame)


--[[
--[[