inside("item")

Tinderbox Icon


Operator Type:   Function
Operator Scope of Action:   Item
Operator Purpose:   Boolean (query)

inside("item")

Returns true if the current note is a direct child of item or, put conversely, if item is the parent of the note. Thus it can be thought of as an "is a child of" operator - and as such a counterpart to the "is parent of" operator contains().

The item parameter must be quoted.

Pertinent to map view, inside() and adornments:

In a more general context inside("X") is true for note A if any of the following are true:

The last of these, if overlooked, can give unexpected results. The more expansive matching above is necessary to do things like looking inside agents. A better test to match just the first of the three conditions above is $Container=="X"

This operator replaced the deprecated legacy #inside query operator.


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

Up: Item-based operators

A Tinderbox Reference File : Actions & Rules : Operators : Action Operator Scope : Item-based operators : inside("item")

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox