<t-let>

A named value computed from other variables. It isn't rendered, but expressions, outputs and formulas can use it like any other variable.

At 50 km/h, a reaction time of 1.5 s means you travel m before braking, then m while braking: m in total.

Computed values can build on each other: reaction and braking both use ms. Each is recomputed only when something it reads changes, and at most once per update.

Attributes

AttributeDefaultDescription
namerequiredThe name of the computed variable.
exprrequiredA JavaScript expression over other variables.

Why name things?

Notes