Tinderbox v10 Icon

^previousSibling^


Export Code Type: 

Export Code Scope of Action: 

Export Code First Added: 

Export Code in Current Baseline: 

Export Code Last Altered: 

 Boolean Comparison   [other codes of this type]

 item   [codes with similar scope]

 v5.0.0

 Baseline

 As at baseline


^previousSibling^

A simple Boolean test for whether the currently processed note has a previous sibling (N.B. not always the original's previous sibling) and that the sibling is exportable. This is useful for export context where differing output is required when the current note is the first sibling. The test of export state allows for siblings that may exist yet be set to not export: not testing this could otherwise give a false indication that there is more exportable sibling content.

This test also solves the problem of testing for siblings when when exporting agent aliases or a sibling mix of originals and aliases.

Example:

^if(^previousSibling^)^… 

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