INPUT /  OUTPUT /  LANGUAGE






void tag

Category: ephemeral logic tag

The void tag absorbs any values produced by the contents of its primary field and discards them. It does not produce any values.

Sample usage

Fields

Primary field

Behavior

The void tag is useful for wrapping around operations that would normally produce values, but the values produced are not needed or wanted. The void tag absorbs any produced values so they do not spill out and pollute the console.

Notes

Example

In the following example, a dialog box needs to be displayed to tell the user a certain action can't be performed. The dialog tag normally produces a result so the program can tell what response the user has selected. In this case the user only has one option to choose from—to close the dialog box after reading it—so we have no use for the value produced by the dialog tag and need to get rid of it somehow. The void tag is compounded with the dialog tag to allow the dialog to be displayed but destroy the value produced by the user's interaction.

<void|dialog {Function disabled. Try a different function.}>