string cut
Get text part
Input:
text: - String text to split
start: - Integer start position
end: - Integer end position
length: - Integer end position relative from start
exclude: - Bool crop mode
Output:
String


Example:
_hello = loadFile Format ["\:string cut text:%1end:5", "Hello World!"]


Description:
Returns portion of the given text. Default start: value is zero and for end: it's length of the text. If starting position is larger than end position then the command will return characters backwards. Use exclude: to cut text from the middle.
Purpose:
To have string range functionality but without quoting strings and with more options.


Version:
1.12
Demo:
Download
Source:
View


Topics:
What is Fwatch?
What's new?
Download & Startup

Presence Check
Using Commands
Input Commands Info
Animation Codes
Function & Script Library
Recommended Practices

Extras
Changelog
Source
Credits

Discuss Scripting
Post Request

Fwatch 1.16 Beta
Mod Manager