Home
XtGem-
Templates-
XtScript-
Translate this page
Unavailable
Microsoft
®
Translator
Check out this page in {0} translated from {1}
translated from
Original:
Translated:
Automatic translation powered by Microsoft® Translator
Start translating
Stop translating
Close
Close and show original page
Select
Main Index
Predefined Functions
Scripts
Xtforum post
Short Url
concatenation
Concatenate strings
(join two strings to create a third string)
[...] = optional ... = your value
...[$...]...[$...]
There is not really any specific function to join strings together it just works this way
Example code
Show as text
<!--parser:xtscript--> var $a = snow var $b = ball #1 To join two or more variables just put them next to each other var $c = $a$b print 1/$c <br /> #2 There must be a space or a character that is not valid in a variable name between a variable name and a string var $c = $a-man print 2/$c <br /> #3 The $ character will serve to separate a string from a variable name var $c=foot$b print 3/$c <br /> #4 These will not work var $c = ($a+$b) print 4/$c <br /> var $c = $a+$b print 5/$c <br /> <!--/parser:xtscript-->
Show as text
Example output
Reload
1/snowball
2/snow-man
3/football
4/0
5/snow+ball
Related pages
print
return
var
Quick index
assign
basic syntax
comments
concatenation
cookies
custom paging
debugging tools
del
delete
get
goto
if
if and
if elseif
if not or
if not or not
if or
includes
js in xtscript
print
return
source
user defined functions
var
xt files
xtfunctions in xtscript
About us
Contact
Forum