L3DT users' wiki
Large 3D terrain generator

strleft

Description

Extract a substring of text from the start of a string (the 'left').

Function prototype

string strleft <string:Text> <int:nChars>

Arguments

Name Type Comment
Text string A text string.
nChars int The number of characters to extract from the Text argument.

Return value

A string containing the desired range of the Text string.

Example

echo <strleft "A B C D 1 2 3 4" 5>

… the output of which is written to the event log by echo as:

A B C

Comments

None.

See also

 
plugins/general/zeoscript/reference/functions/strleft.txt · Last modified: 2017/08/31 06:05 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki