Control the behavior of a rule
Control how a rule behaves, whether it relates to a study's version, visits in the study or the JavaScript expression logic.
- isStudyVersion( )
Compare the provided version with the current study version using the operator provided. - getCurrentVisitPropertyValue( )
Obtain the property value of a given property name for the current visit. A visit property may be its title, ID or event type. - logMsg()
Get specific information regarding a rule's logic while debugging. Place log statements where needed in the JavaScript expression to display values of defined variables and messages to reveal a rule's behavior.
Parent topic: Rules helper function reference