FANDOM


Create a new string from a part of another string.

native SubString takes string source, integer start, integer end returns string

source - The string to process
start - Position to start at (The first character is located at 0)
end - Position to end at

ExampleEdit

local string foo
local string bar
set foo = SubString("The quick brown fox jumps over the lazy dog", 0, 3) // == "The"
set bar = SubString("The quick brown fox jumps over the lazy dog", 4, 9) // == "quick"

See alsoEdit

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.