This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox Icon

^previousSibling^


Code Type: 

Code Scope of Action: 

Code First Added: 

Code Altered: 

 Boolean Comparison   [other codes of this type]

 item   [codes with similar scope]

 Already in v5.0.0

 format"


^previousSibling^

A simple Boolean test for whether the currently processed note has a previous sibling (N.B. not always the original's previous sibling). This is useful for export context where differing output is required when the current note is the first sibling. Possibly not new but undocumented before v5.12.0.

This test also solves the problem of testing for siblings when when exporting agent aliases or mixed original/alias siblings.

Example:

^if(^previousSibling^)^... 

The test is analogous to testing prevSibling or firstSibling in an action code context.


Possible relevant notes (via "Similar Notes" feature):


A Tinderbox Reference File : Export Codes : Export Code Types : Boolean Comparison : ^previousSibling^