Computable variables in Author Online

Computable variables are values calculated using rules, logic, or formulas. They serve as reusable containers for business rules and calculations, commonly used for performing calculations or evaluating complex conditions.
In Author Online, you can view the list of computable variables from the start screen. To view the list, open the hamburger menu and select "
Computable variables
" option from the drop-down menu.
This view displays all computable variables used in the template in a single place.
To edit a variable, expand it from the list and click the expression window to input your expression.
Author Online provides smart suggestions for possible variables, variable values, functions, existing lookup tables, and operators that can be applied to a statement as you type. These suggestions help complete statements using existing variables and their values.
The Expression Editor in Author Online allows users to enter Mark-up Language expressions with built-in auto-suggestions for easier creation. As you type, a code completion drop-down displays matching functions and variables. For example, typing "Y" displays all items beginning with "Y", and pressing Enter selects one (e.g., yearsafter).
Depending on the variable type (such as Text Selection), the editor suggests relevant operators and then displays the corresponding text options. All changes are saved automatically.
To select a suggestion, double-click the desired item, or use the down arrow key to navigate through the list and press Enter.
Additionally, built-in functions and database parameters display helpful information when highlighted.
note
Any changes made to variables in the dedicated
Computable Variables
view are automatically synchronised with the variables shown in the Questionnaire view.

Save with answers

If this option is selected, the value of the computed variable will be recorded in the answer set. This option applies
only to unrepeated variables
. This is useful for enabling access to data for other systems, such as HighQ iSheets.
For more information on how to build computable variables using Boolean operators and list values from variables, see here.