Page 2 of 2

Re: Question

Posted: April 14th, 2020, 1:11 pm
by josh
if ischecked("30", DAY30) then
    skip to
Q3;
else
    skip to
Q4;
endif;

Re: Question ("HOW TO PROGRAM SKIPS ON QUESTIONS WITH MANY OCCURRENCES")

Posted: April 15th, 2020, 10:41 am
by SieAIP
Thanks Martin and Josh for your help.
I have been able to conquer this issue now.


My next Challenge is "HOW TO PROGRAM SKIPS ON QUESTIONS WITH MANY OCCURRENCES".
I have questions 5 and 6 (Q5 & Q6) with 3 occurrences each.

Q5 requires entry of amount of money spent in 3 different days in the 3 different occurrence boxes while Q6 requires the currency unit entered in the sequence the amount was entered in Q5.

I want Occurrence 1 in Q6 (currency unit) skipped if no or zero amount is entered in Q5 (Amount spent) occurrence 1. Same arrangement for occurrence 2 and 3.

Please can you help me with this logic too?
Thanks in waiting

Re: Question

Posted: April 15th, 2020, 3:22 pm
by josh
Use () to get values for multiple occurrences. So Q5(1) will give the value of the first occurrence, Q5(2) will give the value of the second occurrence... You can combine that with "ask if" or and "if then skip".

Have you looked at the workshop lessons on this page: https://www.csprousers.org/resources/ (look under Workshop)? They walk you through a lot of the basics and answer a lot of the questions you are asking. Session 4 covers working with multiple occurrences and section 2 covers skips.

Re: Question

Posted: April 17th, 2020, 9:43 am
by SieAIP
Thanks Josh and Martin... All done now!