Console Functions in DIAL
The console functions send information to the DIAL standard output.
When you run a DIAL script from the Workbench text editor, the results display in the Output tab. See Status Bar as discussed under Workbench Interface.
When a DIAL script runs through a Production DIAL process node in Workbench, look for the output under Show Results. See Show Results Mode for Production scripts.
Returns a line from the DIAL standard input without the terminating new-line character. Returns NAN when encountering an end-of-file condition. Note that the standard input is the data that the user types in when the script runs. You can redirect files into standard input by using the command-line argument:
java -jar dial.jar < input-file.txt
For example:
myvariable = console.read();
Writes the specified string to the DIAL standard output. Standard output is the data that DIAL prints, which can be redirected to a file by using the command-line argument:
java -jar dial.jar > output-file.txt
For example:
console.write("The last area number is ");
console.write(countvariable);
where countvariable was previously set in an assignment statement.
Writes the specified string to the standard output of the DIAL interpreter, followed by a new line.
NOTE: Control characters are accepted. For example, "\n" is new line and "\t" is tab.