how to determine the age

Other discussions about CSPro
Post Reply
MrTaco
Posts: 128
Joined: November 18th, 2014, 1:55 am

how to determine the age

Post by MrTaco »

Hi guys

i want the logic code based on the sentence below

it should be able to detect if the 2nd partner is 5years younger or 5years older than the 2nd partner so it be able to skip to other questions

thanks in advance
Saint
Posts: 63
Joined: November 22nd, 2013, 4:59 am

Re: how to determine the age

Post by Saint »

Hi,
More context is required to be able to help with any code. Are both partners being listed in some kind of roster?. At what point do you want to 'detect..'? Is it immediately after you enter the age of the second partner? Do you have a variable that identifies that this is the second partner? or you have to extract this from relationship codes somewhere? There is definitely a way to do it depending on the exact sequencing of questions and the context...

Saint..
MrTaco
Posts: 128
Joined: November 18th, 2014, 1:55 am

Re: how to determine the age

Post by MrTaco »

Hi Saint I managed to crack it hey

I used if Q1.1 < Q21.1-5 then skip to Q23.1;endif; it worked

Thanks
Post Reply