Print out

Purpose: Print data out.

 print-out <string> [ <length> ] [ url-encode | web-encode ] [ new-line ]

 print-out <number> new-line

 print-out source-file [ new-line ]

 print-out source-line [ new-line ]

print-out outputs various kinds of data:
If "length" clause is used, then only <length> leading bytes of <string> are output.

If "new-line" clause is used, then a new line ("\n") is output after <string>.

Note that all bytes of <string> are output, even if <string> contains null-bytes.

  • Outputs a number, given by <number>:
     print-out <number> [ new-line ]

    If "new-line" clause is used, then a new line ("\n") is output after <number>.

    To output a number to a client:
     set-number x = 100
     print-out x

  • Outputs the file name of the current source file.
     print-out source-file [ new-line ]

    This outputs the file name (relative to the source code directory) of the source file where the statement is located; this is often used for debugging.

    If "new-line" clause is used, then a new line ("\n") is output afterwards.
     @This file is <<print-out source-file>>

  • Outputs current line number in the source file.
     print-out source-line [ new-line ]

    This outputs the line number in the source file where the statement is located. It is often used for debugging purposes.

    If "new-line" clause is used, then a new line ("\n") is output afterwards.
     @This line is #<<print-out source-line>>

  • See also
    Output
    finish-output  
    flush-output  
    output-statement  
    print-format  
    print-out  
    print-path  
    See all
    documentation


    Copyright (c) 2019-2025 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.