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( )
Control rule behavior on different visits. For instance, if a rule is created on a question in a form, and that form is associated with multiple visits, you can raise a query only on certain visits in a study, not all visits. - 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