Study Definition module

 

Checking expressions

There are various ways to check an Arezzo term in the Arezzo Expression Builder.

Syntax checking

When you click OK, your Arezzo term will be checked for correct syntax. If the syntax is incorrect (for example if there is a bracket or a quote missing), you will see a message informing you that the expression is not valid.

 

Click here for more information on Arezzo syntax.

Semantic checking

You can also perform additional checks on the current Arezzo term by clicking the Check button or selecting Check > Check.

 

This checks the term’s syntax, and then performs a semantic check, i.e. does this expression make sense?

For example, if you mistype a question name, or use a value of the wrong type in a question derivation, you will see a warning message.

 

Note that even if there are warnings like this, the expression may still be accepted, but it is unlikely to behave correctly during data entry. It may also occasionally happen that an inappropriate warning message is given, for example when an if expression does not contain the correct number of arguments, you may see a message that the expression is of the wrong type.

If the term checker did not find any potential problems you will see a confirmation message.

 

See also the Arezzo Term Checker, which generates a report on all the Arezzo terms in your study.

Bracket Checking

A common error is to include too many or too few brackets in an expression. The Match Brackets button at the bottom of the window allows you to pair up the brackets in your Arezzo term, to help you discover syntax errors. See image

Place the text cursor within your Arezzo term and then click the Match Brackets button. This will extend the text highlighting to include the next pair of matching left and right brackets. See image

Clicking the Match Brackets button again will extend the text highlighting to include the next pair of matching brackets, and so on. See image

Click here for more information on the use of brackets in Arezzo syntax.

 

 

Related Topics