Layer 2: Console IO

Layer 2 contains the specification for I/O blocks that can be used in console environments for reading and writing data; often to provide support for automated testing. These blocks provide standard-input / standard-ouput operations, equivalent to printf() and scanf(). Support for this layer is optional; many engines will not need this. They make use of the Expression Specification for generating output.

Namespace: ConsoleIO

  • Type: ConsoleIO.Print

  • Number of exits: 1

This block prints a message to standard output, by evaluating an expression.

Example

TODO

Read Block

  • Type: ConsoleIO.Read

  • Suggested Number of exits: 2

This block reads a line from standard input, and stores it in one or more context variables.

The block writes an output value of TRUE or FALSE to the block name for its result; TRUE if the read was successful.

This block typically has 2 exits: the first is chosen when variables are read successfully. The second (default exit) is used when there is a read error.

Example

TODO

Last updated