Arbortext Command Language > Functions by Alphabetical Listing > selection_balanced
  
selection_balanced
selection_balanced ([doc])
 
This function returns 1 (True) if the selection in the current window is balanced, meaning that a tag pair (start and end tag) have been selected.
* 
selected must be True before selection_balanced will return a meaningful result.
The doc argument specifies the identifier of the document tree to query. If omitted or 0, the current document is used.