/
Using Persistents in Conditions

Using Persistents in Conditions

Persistents in condition statements are accessed in the same way as in the prelude.

The following action will fire when the persistent variable ent:archive_pages is greater than 3:

if ent:archive_pages > 3 then 
   event:send(...)

Related content

Using Persistents in Preludes
Using Persistents in Preludes
More like this
Variable Correlation Between Eventexes
Variable Correlation Between Eventexes
More like this
Mutating Persistents in the Postlude
Mutating Persistents in the Postlude
More like this
Attribute Expressions
Attribute Expressions
More like this
Capturing Values
Capturing Values
More like this
Prelude
Prelude
More like this

Copyright Picolabs | Licensed under Creative Commons.