Syntax:

PRINT(text)

  • text: text you want to be displayed.

Return value:

This command always returns “OK”.

Example:

# This script should display:
# Hello world
PRINT("Hello world")
 
# Store the current date in the $date variable
$date=GETDATE(FORMAT3)
 
# Build a text string concatenating
# some words and the date variable
$message="hello "."world ".$date
 
# Print the text
PRINT($message)
 
# Shorter way:
PRINT("hello world ".GETDATE(FORMAT3))

The script output of the script above is the following:

print_example