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

last subelement is

 

 

Return type: Boolean
Returns:       

Returns true if the most recently closed subelement of the qualified element is specified. Otherwise, a value of false is returned. Replacing is with isnt will reverse the results.



Syntax
  last proper? subelement element-qualifier*
    (is | isnt) (element-name | element-name-list)


Purpose

An element test that succeeds if the name of the most recently closed subelement is given in the test's list of element names.

When the keyword proper is specified, the last subelement is test ignores included elements. If all of the subelements of the referenced element have been included elements, then the test will fail.

When the last subelement is test is applied to the current element from an element rule, it fails if the content has not yet been processed.

When invoked on ancestor elements, the last subelement is test is related to the previous is test.

The following output action uses last subelement as a qualifier. This action will be executed only when the last subelement of the parent element has a status of "inclusion":

  output "\par %n" when status of last subelement of parent is inclusion

    Related Syntax
   previous is
 
 
 

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

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

Copyright © Stilo Corporation, 1988-2005.