Start a conversation

Calculations - the basics

  • Calculation fields and syntax

    Calculation fields in Castor allow you to solve different mathematical problems by using the variables from your eCRF. Common applications of calculations Calculations can be used for simple mathemati...

  • Calculations in the Form Exchange

    You can find a lot of predefined calculations in our Form Exchange, or provide your own calculations for others to use. We hope that our users will share calculations they have created and feel may be...

  • Forcing Castor to calculate with empty fields

    This tutorial covers the functions you can use to calculate with multiple fields, even if one or more of the values are not set.  The tag '##allowempty##' tells Castor to allow for empty fields to be ...

  • Using the "if-else" logic

    This tutorial will cover what an if/else statement is, when to use it, and how to use it. What is an if/else statement The if/else statement is a logical, conditional expression that evaluates a condi...

  • Using the "for loop" in calculations

    In calculations, it is sometimes necessary to repeat a certain action several times. For example, you want to calculate an average of several variables, while some of them are allowed to be empty. In ...