swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
     
operator  

previous is

 

 

Return type: Boolean
Returns:       

True if the qualified element is not the first subelement and false otherwise. Replacing is with isnt will reverse the results.



Syntax
  previous element-qualifier* (is | isnt) (element-name | element-name-list)


Purpose

A test that succeeds if the qualified element is not the first subelement of its parent, and if the previous subelement has the specified element name. Otherwise, it fails (and returns false).

For example, the following "do...done" block uses a previous is test, and the actions within the block (not shown here) will only be executed if the current element follows a paragraph (par) element:

  do when previous is par
  ...
  done

The previous is test ignores inclusions and data content.

       
 

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

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:45:41 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.