Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Available Functions - this page provides detailed descriptions and examples of all the possible CommCare Functions that you can use when making calculations or other expressions. Common examples of functions include: today(), string-length(), now(), and date() - these are very useful for manipulating data.

  • Show the username in the case list/details - this technique is important if you want to be able to show the username of the person who created or last interacted with a case in the case list or case details. This is primarily useful in applications that use Case Management.

  • Display an Answer to a Previous Question - this page explains how to show the display a calculation of another question in the label text of another question.

 General Pointers

This page provides guidance for some of the basic principles and practices of writing calculations or logic in CommCare

Single vs Double Quotations

Generally values in display or calculation conditions will be inside quotes

...

 

You can use single quotes or double quotes, both work fine.

Spaces

Spaces generally will not matter (i.e. Will be ignored) unless they are inside quotes.

Info

Wondering where "/data/" went?

On July 5, 2016, we released an update to the application builder that changes the way you reference form questions. To read more about the new references, see this overview