Blocks ====== Every block of this toolkit, from its catalog. base ---- .. list-table:: :header-rows: 1 * - Block - Type - What it does * - :doc:`And ` - ``and`` - Holds when all of its inputs hold. * - :doc:`Boolean ` - ``boolean`` - On or off: 1 or 0. * - :doc:`Note ` - ``comment`` - A canvas note or annotation card. * - :doc:`Compare ` - ``compare`` - Compares a with b: greater, less, equal… * - :doc:`Number ` - ``constant`` - A number you set. * - :doc:`Delay ` - ``delay`` - Delays values by delay milliseconds. * - :doc:`Demux ` - ``demux`` - Splits a vector into numbers, one output per name. * - :doc:`If ` - ``if`` - Picks a or b by a condition; on a Step flow, branches the path. * - :doc:`In Range ` - ``in_range`` - Holds when u is between min and max. * - :doc:`Interval ` - ``interval`` - Pulses 1.0 periodically every interval milliseconds. * - :doc:`Key ` - ``key`` - 1 while a key is held down in the app. * - :doc:`Key Hold ` - ``key_hold`` - Outputs 1 while a key is held, plus the duration in seconds. * - :doc:`Mux ` - ``mux`` - Joins numbers into one vector, one input per name. * - :doc:`Not ` - ``not`` - Holds when its input doesn't. * - :doc:`Now ` - ``now`` - Current run clock in milliseconds. * - :doc:`Or ` - ``or`` - Holds when any of its inputs holds. * - :doc:`Text ` - ``text`` - A piece of text you set. * - :doc:`Timeout ` - ``timeout`` - Outputs 1.0 after a delay in milliseconds has elapsed. * - :doc:`To Boolean ` - ``to_boolean`` - Truthiness coercion: non-zero numbers and non-empty values become 1, else 0. * - :doc:`To Number ` - ``to_number`` - Converts any value or text to a number, or uses a fallback. * - :doc:`To Text ` - ``to_text`` - Converts numbers, booleans, or lists to formatted text. * - :doc:`Type Of ` - ``type_of`` - Returns the type name: number, text, vector, table, handle, or empty. * - :doc:`Variable ` - ``variable`` - A variable's value: constant for the run, or live if the variable is tunable. * - :doc:`Xor ` - ``xor`` - Holds when exactly one of a or b holds. group ----- .. list-table:: :header-rows: 1 * - Block - Type - What it does * - :doc:`In ` - ``inport`` - An input of the subsystem or story it is in: a port on the group's block outside, named by name, and its value here. * - :doc:`Out ` - ``outport`` - An output of the subsystem or story it is in: what is wired to it leaves by a port on the group's block outside, named by name. .. toctree:: :hidden: and boolean comment compare constant delay demux if in_range interval key key_hold mux not now or text timeout to_boolean to_number to_text type_of variable xor inport outport