const

Syntax

  • const id = expression

A new constant can be introduced by the const keyword. As for attributes, constant expressions are evaluated only once at the beginning of the generation process before any rule is applied.

The values of constants cannot be externally changed through the Inspector or by a map. Constant expressions do not appear in the Inspector.

Examples

Defining a constant with const

const height = 250

Lot --> extrude(height)

In this topic