Print()

Print()

Type: REGULAR FUNCTION

Purpose: Prints one or more values to the output file.

Only the primitive data types (REAL, INDEX, STRING, BOOL, and BITS) print usable values. For example:

ExpNo = 5

Print(“Experiment No.”, ExpNo)

prints

Experiment No.5

in the output file.

Usage: Print(Value, …)

  Value any type The value(s) to be printed
       
Each variable is printed according to its type as shown in the following table.
    Variable Prints
    BOOL “T” or “F”
    INDEX

Integer value. No leading zeros. Negative sign if required.
    REAL General format. E notation for very large or small numbers.
    BITS Hexadecimal preceded by 0x. No leading zeros.
    STRING

String value up to terminating null character.
    NIL “NIL”

Related Topics Link IconRelated Topics