TorqueScript Reference
Typedefs
String Operators

Typedefs

typedef type NL
 
typedef type operator@
 
typedef type SPC
 
typedef type TAB
 

Detailed Description

Typedef Documentation

◆ NL

typedef type NL

Concatenates two strings into a single String separated by a new-line.

example
%newString = "Hello" NL "World";
echo(%newString);
OUTPUT:
Hello
World
void echo(text, [...] *)
Definition output_ScriptBinding.h:36
type NL
Definition core_ScriptBinding.dox:262

◆ operator@

typedef type operator@

Concatenates two strings into a single String with no separation.

example
%newString = "Hello" @ "World";
echo(%newString);
OUTPUT:
HelloWorld

◆ SPC

typedef type SPC

Concatenates two Strings into a single String separated by a space.

Note: such a String can be decomposed with getWord()

example
%newString = "Hello" SPC "World";
echo(%newString);
OUTPUT:
Hello World
type SPC
Definition core_ScriptBinding.dox:220

◆ TAB

typedef type TAB

Concatenates two strings into a single String separated by a tab.

Note: such a String can be decomposed with getField()

example
%newString = "Hello" TAB "World";
echo(%newString);
OUTPUT:
Hello World
type TAB
Definition core_ScriptBinding.dox:235