TorqueScript Reference

- Main Page
- Related Pages
- Modules
- Classes

Typedefs
String Operators
Operators

## Typedefs
typedef type | NL
typedef type | operator @
typedef type | SPC
typedef type | TAB

## Detailed Description

## Typedef Documentation

typedef type NL

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

example
  1 %newString = "Hello" NL "World";
  2 echo(%newString);
  3
  4 OUTPUT:
  5 Hello
  6 World

typedef type operator @

Concatenates two strings into a single String with no separation.

example
  1 %newString = "Hello" @ "World";
  2 echo(%newString);
  3
  4 OUTPUT:
  5 HelloWorld

typedef type SPC

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

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

example
  1 %newString = "Hello" SPC "World";
  2 echo(%newString);
  3
  4 OUTPUT:
  5 Hello World

typedef type TAB

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

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

example
  1 %newString = "Hello" TAB "World";
  2 echo(%newString);
  3
  4 OUTPUT:
  5 Hello World