WoW:API strrep: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
mNo edit summary
Line 9: Line 9:
  Lua
  Lua
  Lua
  Lua
[[Category:API Functions|strrep]]
[[Category:API String Functions|strrep]]

Revision as of 19:08, 27 August 2005

string.rep(s, n)

Generate a string which is n copies of the string passed concatenated together.

> = string.rep("Lua ",5)
Lua Lua Lua Lua Lua
> = string.rep("Lua\n",3)
Lua
Lua
Lua