This version is out of date, covering development from v8.0.0 to v8.x.x. 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 v8 Icon

create(item)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 Item   [operators of similar scope]

 Data manipulation   [other Data manipulation operators]

 Baseline

 


create(item)

This creates a new note at the designated location, and returns the full path to that note. If the designated note already exists, no new note is created and the operator returns the empty string.

This function needs no left-side expression argument, i.e. '$SomeAttribute='.

item is typically a complete path:

create("/hardware/taps"); 

item can be a unique note name, in which case a new note is created as a child of the current note. For example:

create("taps"); 

create(/path/to/container, name)

A two-argument variant is also offered that allows the container for a new item to be specified, and the new item's $Name. This may be useful if you need to create several notes in the same container, for example is iterating a list with .each(). For example:

create("/hardware","taps"); 

Or, more pertinently, using a loop variable 'xPlace':

create(xPlace,"taps");