Using Persistents in Preludes

Persistent variables can be used inside prelude expressions like any other variable.

Persistent variables cannot appear on the left-hand side of a declaration in the prelude.

Examples

The following declaration would add 3 to the value stored in the entity counter ent:fizz, storing the result in x:

pre {
  x = ent:fizz + 3
}