INPUT /  OUTPUT /  LANGUAGE





putError tag

Transient logic tag

Writes a line to the console's error output, for debugging.

Sample usage

Fields

Primary field

Vector field

The values to write.

Secondary fields

None.

Behaviour

When the tag is complete, the values in its primary field are written, followed by a newline, to the console's error output (the terminal in which iol was run), not to the program. The tag does not generate a value.

Notes

Push putError into code fields to see when events happen and what values are at that moment, without disturbing the program.

Example

<button {Go} onClick=<putError {Go clicked, count is }, count>, <count | add count, 1>>

See also