Limesurvey, 6 Expressions and tokens
According to my dictionary, an expression is the act or an instance of transforming ideas into words. The text age>=18 in the chapter about routing is an example of an expression. The outcome of this expression was either true or false. The outcome of an expressions need not be true or false. It can be a number or a text as well. Let's try the latter.
Go back to the question that asks the name of the participant. Change the question code into name. Now go to the question about marriage. Click the question text. Put the cursor at the start and click ⋮ -> Placeholder fields -> name: What is your name. It will turn the question text into "{name.shown}, are you married?". name is the question code of a previous question. Limesurvey put curly brackets around it to distinguish it from normal text. The meaning of the additional .shown is not important for now, it would also work if you typed the text (including curly brackets) manually without it. See what happens if you run the whole survey.
Indeed, the participant sees a nice greeting with his or her name inserted.
Tokens
Often a survey participant will not type his own name. A list of special logins is made and invitations are send. Such special logins are called tokens in Limesurvey. If you use tokens, only invited people can enter the survey. Special expressions such as {TOKEN}, {TOKEN:FIRSTNAME} and {TOKEN:EMAIL} become valid. Feel free to play around with tokens, but do not forget to delete the token list before continueing with the tutorial. The tokens are also available from the Placeholder fields menu, but you can type them manually as well.
The advanced tutorial has some more examples on the use of expressions. For advanced sexpressions you usually type them manually.
Continue with the next lesson