Thank you holch for your prompt reply!
Yes you are right, "exists" means it was shown, sorry for the unclear expression.
The updated lss. file is attached, with the needed previous questions. And I don't know where to put the missing { and } around the equations, could you specify a bit please?
By the way, I understand my approach looks strange and unusual, let me try to explain. In general, the reason for using the unusual approach, is that I'd like to keep the number of questions as small as possible since random techniques were used in the following part.
Firstly there are questions about the daily travel routines and trips, the routine questions are "WorkHour", "GroceryFreq", "NongroFreq" and "LSTFreq", corresponding to 4 types of activities: 1) work, 2) grocery, 3) non-grocery shopping, 4) leisure/social visits/touring (the last one type actually consists of 3 sub-categories). For each of the routine question asking the frequency, there is the option of "never", which means do not work / grocery / non-grocery shopping / do leisure activities or social visits or touring.
Secondly, respondent will be asked to report (max.) 4 trips with different purposes. If they do all the activity types, they will report for 4 different purposes. The thing is the last type (leisure/social visits/touring) consists of 3 sub-categories, in order to collect as much data as possible, it's decided that once someone says they do not do any of the first three activity types (work / grocery / non-grocery shopping), at the same time they do the last activity type (leisure activities/social visits/touring), they have to report more than one trip of this last type. For instance, person A do not work, A should report 2 trips of leisure/social visits/touring if possible plus trips of grocery and non-grocery shopping. The approach here seems a bit unusual, which is to have trip1, 2, 3, 4 with text display questions controlling the trip purposes, instead of trips specifically for different types (actually 3+3=6 types in total). The reason for using this unusual approach, is that random techniques were used in the following questions about the trips, which was explained in the following section.
Finally, there will be questions about their reported trips, with the opening words "You reported the following trip for ...(trip purpose)". Here the plan is that only 1 of the (max.) 4 reported trips will be shown, so random techniques were used, which is why I'd like to control the number of previous reported trips (max. 4) using the text display questions. Since if there are specific trips for different purposes, many different random groups should be constructed. For instance, let's say 123456 stand for 6 trips for different purposes, the random groups can be 1) in the condition that the frequency of purpose 1 is chosen "never"; 2) in the condition that the frequency of purpose 2 is chosen "never"; 3) in the condition that the frequency of purpose 1 and 2 is chosen "never", and so on and so forth. I think the number of conditions should be 2*2*2*2*2*2=64. But using this stange approach, the items in the random group can kind of fixed, always the trips 1,2,3 and 4.
I hope I've made it clear.
Thanks again for your answering.
Xueting