Tapestry
Source Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Call

Pattern calls, argument handling, and related helpers.

Definitions:

Commands:

Commands

Pass a named value to a parameterized call.

Terms:

Arg: Text

Name of the parameter. An empty string is treated as an unnamed parameter.

from: Assignment

Value to assign to the parameter.

Run a pattern, returning its result (if any). Tell files support calling patterns directly, so this is only needed when using the blockly editor.

Slots:

Terms:

Determine: Text

The name of the pattern to run.

args: Arg repeats

Arguments to pass to the pattern. Any unnamed arguments must proceed all named arguments. Unnamed arguments are assigned to parameters in the order the parameters were declared. It's considered an error to assign the same parameter multiple times.

Provide a stored value for an assignment.

Slots:

Terms:

FromAddress: Address

Address to read from.

Provide a boolean value for an assignment.

Slots:

Terms:

FromBool: BoolEval

Boolean value for the assignment.

Provide a number for an assignment.

Slots:

Terms:

FromNum: NumEval

Number for the assignment.

Provide a list of numbers for an assignment.

Slots:

Terms:

FromNumList: NumListEval

Numbers for the assignment.

Provide a record for an assignment.

Slots:

Terms:

FromRecord: RecordEval

Record for the assignment.

Provide a list of records for an assignment.

Slots:

Terms:

FromRecordList: RecordListEval

Record values for the assignment.

Provide some text for an assignment.

Slots:

Terms:

FromText: TextEval

Text for the assignment.

Provide a list of text values for an assignment.

Slots:

Terms:

FromTextList: TextListEval

Text values for the assignment.

Determine whether a pattern is running.

The [rtti.num_eval] version returns the distance to the pattern.

Slots:

Terms:

pattern: Text

The name of the pattern to check.

Determine whether a scene (aka domain) is active.

Slots:

Terms:

scene: Text

The name of the scene to check.