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

previous is

 
 

Return type: Switch
Returns:        True if the previous element has the specified name.

Syntax

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


Purpose

A test that succeeds if the previous sibling element has the specified element name. Otherwise, it fails (and returns false). It also fails if the qualified element is not the first subelement of its parent. Replacing is with isnt will reverse the results.

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 ] [ 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.