Console
4 nodes
On this page 4
Print text without ending the line: whatever is printed next continues it.
Write(message: Text)
void Write(string message)
Parameters
| name | type | default | description |
|---|---|---|---|
| message | Text | — |
Remarks
For a prompt answered on the same line - Print "Name: ", then Read Line - or one line built from several pieces. In the editor's console dock consecutive Prints make one line, a read that follows one shows its input row after what was printed, and a line still open when the run ends is the console's last line. Under stew, or as a program of its own, the text goes to standard output as it is printed.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Console
- Package
- Platform
Print Value
FunctionPrint any value on a line of its own; a list or an array prints one item per line.
Print(object: Any)
void Print(object object)
Parameters
| name | type | default | description |
|---|---|---|---|
| object | Any | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Console
- Package
- Platform
Print Line
FunctionThis node carries no documentation.
PrintLine(message: Text)
void PrintLine(string message)
Parameters
| name | type | default | description |
|---|---|---|---|
| message | Text | — |
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Console
- Package
- Platform
Read Line
FunctionRead the next line of text typed for the program, without its line break; nothing (null) once there is no more input.
ReadLine() -> Text
string ReadLine()
Returns
| result | Text |
Remarks
In the editor the console dock asks for the line and the run waits for it - Enter sends it, Ctrl+D ends the input, and Stop answers end of input; Shift+Enter starts another line, and several lines sent at once answer one read each, in turn. Under stew, or as a program of its own, the line comes from standard input: the terminal, or whatever was redirected into it.
- Ships with
- Divooka ExploreDivooka Compute
- Graph kinds
- Flows Function Events Routine Constructs StateMachineState
- Declared by
- Console
- Package
- Platform