Question

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Question

Post by josh »

if ischecked("30", DAY30) then
    skip to
Q3;
else
    skip to
Q4;
endif;
SieAIP
Posts: 24
Joined: April 7th, 2020, 5:57 pm

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

Post 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
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Question

Post 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.
SieAIP
Posts: 24
Joined: April 7th, 2020, 5:57 pm

Re: Question

Post by SieAIP »

Thanks Josh and Martin... All done now!
Post Reply