Revision history of "Lua Snippets"

From GiderosMobile

There is no edit history for this page.

This page has been deleted. The deletion, protection, and move log for the page are provided below for reference.

  • 02:38, 1 December 2023 MoKaLux talk contribs deleted page Lua Snippets (content was: "__TOC__ '''Here are some code snippets for the Lua language.'''<br/> '''All samples are ready to use. Enjoy!'''<br/> == STRING == === FINDING A NUMBER IN A STRING '''@xxx''' === <syntaxhighlight lang="lua"> local mystring = "Doe is 26 years old." local age = tonumber(string.match(mystring, "%d+")) print(age) -- outputs 26 </syntaxhighlight> === CHECK IF STRING X STARTS OR ENDS WITH STRING Y '''@lua-users wiki''' === <syntaxhighlight lang="lua"> local function starts_with(s...")