INCLAN: print: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
(Created page with 'Usage: print ''text'' [level=minimal|normal|full|debug] error ''text'' The statements "print" and "error" write the message ''text'' to the output. "error" also invokes …')
 
No edit summary
 
Line 1: Line 1:
Usage: print ''text'' [level=minimal|normal|full|debug]
== Synopsis ==
      error ''text''


The statements "print" and "error" write the message ''text'' to the
'''print''' ''text'' ['''level'''=''level'']
output. "error" also invokes the error handler (as set with the
variable "erract") and is thus useful to print error messages from
within a macro.
In the "print" statement the "level" option can be used to determine
whether the message is written or not, depending on the value of the
system variable "info".


== Description ==
Writes the ''text'' to standard output or into the file with the given ''filename''. If the ''text'' contains blanks it must be enclosed in double quotes. Optionally, the importance '''level''' of the output can be defined. By default, the importance level is '''normal'''.
== See also ==
== See also ==


* [[erract]]
* [[erract]]
* [[info]]
* [[info]]

Latest revision as of 17:32, 13 August 2009

Synopsis

print text [level=level]

Description

Writes the text to standard output or into the file with the given filename. If the text contains blanks it must be enclosed in double quotes. Optionally, the importance level of the output can be defined. By default, the importance level is normal.

See also