Calculations can be used to test and assemble text values. The following expression tests whether someone typed “California” in response to question Q2:

{Value:Q2} == “California”?1:0

This expression returns a whole number: 1 if the value does equal “California” and 0 if the value does not equal California. Text calculations are not case sensitive.  This means the calculation above will be true whether the participant typed California, california, or CALIFORNIA.

The expression below creates an email address by adding to whatever the user typed in response to the LASTNAME question:

({Value:LASTNAME} + “”)