Skip to main content
Skip table of contents

text() Macro

Use this macro if you want to use white spaces like tabs, new lines, or carriage returns in a string.

Syntax

aWhitespaceString = text(LITERAL)

Semantics

Transforms all escaped white spaces found in a string literal to a real white space. The text macro takes only string literals as parameter. Returns a new string. Only the following white spaces are supported:

  • \n     new line

  • \r     carriage return

  • \t     tab

Substitutables

LITERAL

String literal. 

Examples

The literal contains the escaped white space \n, which is transformed to a real line break.

NONE
set whitespaceString = text("First line.\nSecond line."); 

Related Pages:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.