This version is out of date, covering development from v7.0.0 to v7.5.6. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

Tinderbox 7 Icon

linkedFrom("[item|group]"[,linkType])


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Item   [operators of similar scope]

 Query Boolean   [other Query Boolean operators]

 Baseline

 


linkedFrom("item"[,linkType])

Returns true if the current note is linked to an item; this is optionally filtered to only links of type linkType. Put another way, "Does an outbound link exist from item to the current note?" or "Does an inbound link exist to the current note to item?".

This is effectively only a query term, it returns a Boolean. If you are trying to collect data about the linked note(s), use links() instead.

Ways to define item. The item parameter must be quoted unless an attribute reference, e.g. "Some note" vs $MyString.

Ways to define group. In group-scope, a wildcard designator "*"matches all notes and replaces the normal "all" group designator.

Links of type 'prototype' are ignored. Used in an agent, 'this' note is the alias in the agent and not its original, making this action unsuitable for testing in a agent action.

If using linkType, you must use the value "*untitled" to match an 'untitled' type link (rather than "" or "untitled").

Thus, to test if any note using the 'Event' prototype has an inbound link of the 'untitled' link type the agent query would be:

$Prototype=="Event" & linkedFrom("*", "*untitled") 

This replaces the legacy #linkedFrom query operator.

The logical opposite of this test is linkedTo().

This function can match a link from an alias as opposed to an original (if the logical choice).



A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : linkedFrom("[item|group]"[,linkType])