print()
Print text to a computer output window on the PATROL Console.
Syntax
print(text1,[...,textn])
Parameter
Parameter | Definition |
---|---|
text1...textn | one or more text strings or variables containing a text string to be output by the print() function |
Description
The print() function prints text1...textn to the computer system window on the PATROL Console. If the PSL script is a task, the output of the print() function is directed to the task's own window. The print() function always returns the NULL string.
Example
Each of the following print() functions displays the phrase "Hello World!" to the computer system window on the PATROL Console:
print ("Hello ","world!","\n");
print("Hello world!\n");
print("Hello ");
print("world!");
print("\n");
print("Hello world!\n");
print("Hello ");
print("world!");
print("\n");