/
Using Persistents in Preludes
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 }
, multiple selections available,
Related content
Using Persistents in Conditions
Using Persistents in Conditions
More like this
Using Persistent Variables
Using Persistent Variables
More like this
Persistent Variables
Persistent Variables
More like this
Persistent Compute Objects
Persistent Compute Objects
More like this
Mutating Persistents in the Postlude
Mutating Persistents in the Postlude
More like this
Copyright Picolabs | Licensed under Creative Commons.