Calculating Values: Put Calculations Inside of Constraints

To calculate a value, put the calculation inside of a constraint instead of in an inline expression.

To calculate a value, put the calculation inside of a constraint, instead of in an inline expression.

For example, to calculate area, use this constraint:

1constraint(area == length * width)

Avoid this example, which calculates the area with an inline expression, and can impact performance:

1area = length * width.