General expressions
Use basic JavaScript expressions in your rules to perform a variety of tasks and validations.
- Comparison
Use this expression when you want to compare two variables and generate a query when the result returns false. - Conversion
Automatically convert values such as Fahrenheit into Celsius or Celsius into Fahreinheit degrees. - Switch statement
Use this expression when you want to test multiple conditions. For instance, when you want to calculate the number of kits to be dispensed based on the weight of the subject. - Choice
Search for one of the answers in a choice question. - Compare dates with different formats
Compare two dates with different formats. This can help confirm or resolve date inconsistencies. - Range check
Ensure that values don't exceed a specific range. For example, when you want to check that the temperature is between 97.8°F to 99.1°F. - Search and detect missing values
Verify collected data and raise a query any time a data field is found incomplete.
Parent topic: Rules helper function reference