swirl
Guide to OmniMark 9   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax   Related Concepts  
action  

put

 
 

Syntax

put stream-name indexer? modifiers? 
   (& stream-name indexer? modifiers?)*
    string-expression
    


Purpose

An action that writes the specified string expression to one or more destinations.

If you use put to write to a markup sink, then the string expression may be either a markup source or a string source. On the other hand, if you are using put to write to a string sink, then the string expression must be a string source.

The string expression is evaluated only as needed, depending on its content:

Only the following modifiers are permitted with put:

The specified modifiers replace the one currently in force. If no modifiers are specified, the ones currently in force are used.

Before writing text to the specified destinations, the put action saves the old #current-output set, and creates a new #current-output set consisting of the specified destinations. When the writing is complete, the previous #current-output is restored. This causes #current-output sets to be nested within each other. This useful feature is important when the string expression contains a %c operator.

#current-output may be given as one of the destinations. In this case, the text is written to the set of destinations that are currently active, as well as the other ones specified.

You can only use put on an open stream.

    Related Syntax
 
Related Concepts
 
 

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ LEGACY LIBRARIES ] [ ERRORS ]

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:51:21 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.