Specifically, in the Question box for Cig2 I have typed "Does your {Cig1.shown} smoke cigarettes?" Cig1 and Cig2 are radio list questions. {Cig1.shown} works for piping all answers into Cig2 (e.g., Does your Father smoke cigarettes?) except for when the "Option 'Other'" is selected in Cig1 (e.g., Does your -oth- smoke cigarettes?).
What is the question of Cig1?
You only want to pipe the answer of Cig1 into Cig2?
At first something general: the best to find out these things, is to activate the survey, add some well defined data and investigate the responses.
Then you see
1. You see the question code of the "Other" option: Q0_other
2. You see that you get two columns in the data table.
3. You see the code in Q0 is "-oth-", if "Other" was selected.
This and the paragraph "access to variables" in the manual (jelo mentioned it already) is really helpful.
Well, to answer your question
Either you pipe the text of "Cig1" or the text of "Cig1_other".
So you have to use the
if-function with the respective conditions.
See here about functions
[url]
www.limesurvey.org/manual/ExpressionScri...mplemented_functions
[/url]
As you saw in the table of responses you have two options to decide if "Other" was menitioned.
1. If the code in Q0 is "-oth-"
2. If the answer in Q0_other is not empty
So you may write into the question text
either (if the "Other" is empty)
Does your {if(is_empty(Cig1_other),Cig1.shown,Cig1_other.shown)} smoke cigarettes?
or (if Cig1 is not equal ("!=") "-oth-".
Does your {if(Cig1!="-oth-",Cig1.shown,Cig1_other.shown)} smoke cigarettes?
This way to enter different text according to a condition is called "micro-tayloring".
An often used scenario is the
Dear {if(gender=="M","Mr.","Mrs.")}
Joffm