Mathematical expressions

At the heart of Expr is a BQL expression that processes inputs and outputs. You have, for example, a component with three properties: inA, inB and outAdd. To add the two inputs together you would use this expression:

inA + inB as ‘outAdd’

In mathematical terms, this means:

inA + inB = outAdd

In the example, inA and inB must use the executeOnChange slot flags. When inA or inB change, Expr executes and updates outAdd.

Expr is not restricted to a limited number of properties. You can add and remove properties via Expr’s slot sheet. For example, using the above, we could add another two properties called outMult and inC. The expression would now read:

inA + inB as ‘outAdd’,

inA * inB * inC as ‘outMult’

The comma at the end of the first expression indicates that another expression follows. Use the comma to create multiple expressions that update multiple outputs.