UC_CRLF

Script Function: Inserts a line break to denote the start of a new line.

Syntax

UC_CRLF ()

Examples

The following script inserts a line break between two strings:

:SET &NL# = UC_CRLF()
:
SET &STRING# = "AE &NL#System"

As a result, the word system appears in a new line after the word AE:
AE
System

The following example explains two methods of displaying a Notification message using two lines of text. The result is the same although method 1 uses a script statement to append the newline script function, and method 2 uses a script variable to do so.

Method 1:

:PUT_ATT CALL_TEXT = "The workflow MM.DAY is blocked."

:PUT_ATT_APPEND CALL_TEXT = UC_CRLF()

:PUT_ATT_APPEND CALL_TEXT = "Escalation in 10 Minutes."

Method 2:

:SET &NL#=UC_CRLF()

:
PUT_ATT CALL_TEXT = "The workflow MM.DAY is blocked.&NL#Escalation in 10 Minutes."

The following example uses the script function UC_CRLF to insert a line break in the text that should be sent through an email.

:SET &NL# = UC_CRLF()
:
SET &TEXT# = "The workflow MM.DAY is blocked.&NL#Escalation in 10 Minutes."
:
SET &RET# = SEND_MAIL("smith@automic.at",,"A task could not be started!",&TEXT#)

See also:

seealso

Script Elements for Editing Strings