const keyword

Syntax

  • const id = expression

A new constant can be introduced by "const" and is evaluated the first time it is encountered in a rule or expression. As in "attr", constant expressions are evaluated only once per generation and rule file. The values of constants cannot be externally changed trough the inspector or by a map. Constant expressions do not appear in the Inspector.

Examples

Defining a constant with const

const height = 250 // define a constant "height"

Lot-->extrude(height)

In this topic