Skip to content
Sponsor

Compute

Datapulledcore.data.compute

Derive a value from an expression over the wired inputs. Compute calculates; Logic routes.

Pulled. It runs when a node that fires reads its output, once per turn.

Port Type Notes
value any Grows: one socket per wire
Port Type Notes
out any

Right-click a knob and pick Convert to input to drive it from a wire.

Knob Kind Default Notes
expression text block value

An expression over the wired inputs, which are named after their sockets (the editor numbers them value0, value1 and so on). len(value0) > 200, round(value0 * 1.1, 2) and upper(value0) all work. Expressions run in a sandbox (simpleeval), never Python’s eval, and an error comes back as text on out.

  • Build JSON: Build a JSON object from wired inputs: each input’s port name becomes a key holding that input’s value.
  • Chunk: Split text into overlapping chunks to embed and store.
  • Format List: Turn a json list into text: render each item with a {field} template and join with a separator (one per line by default).
  • Get: Read the value at a dotted or bracket path (user.name, items.0.id).
  • List: Assemble wired values into one list (the reverse of For-each).
  • Parse: Parse JSON text into a structured value.
  • Sentences: Split text into a list of sentences (each ends on . ! ? … or a new line).
  • Split JSON: Split a json object onto one output per configured key (the reverse of Build JSON): each key routes its value.
  • Stringify: Turn a value into JSON text, indented two spaces.
  • Tag Parse: Read inline [bracket] tags in text: emit a mood (the highest-priority mood tag), the display text with its tags shown as emoji, cut short or removed, and an action.
  • Template: Assemble text from {tag} pipes.