L3DT users' wiki
Large 3D terrain generator

strcat

Description

Concatenate two strings.

Function prototype

string strcat <string:str1> <string:str2>

Arguments

Name Type Comment
str1 string The first part of the concatenated string.
str2 string The second part of the concatenated string.

Return value

A string containing the contents of str1 followed by the contents of str2.

Example

// create a new string for name
string MyName

// allow user to edit name
EditUI MyName "Please enter your name"

// add strings together using 'strcat' ("Hello " + MyName), and write to event log using 'echo'. 
echo <zs:strcat "Hello " MyName>

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

Hello Aaron

Comments

None.

See also

 
plugins/general/zeoscript/reference/functions/strcat.txt · Last modified: 2017/08/31 04:47 (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