Page 1 of 1

how to determine the age

Posted: May 9th, 2016, 6:33 am
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

Re: how to determine the age

Posted: May 22nd, 2016, 12:15 pm
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..

Re: how to determine the age

Posted: May 23rd, 2016, 3:44 am
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