# |
Code |
Question |
Type |
Relevance
|
1 |
numKids |
How many children do you have? |
Numerical input |
1
|
2 |
kid1 |
How old is your first child? |
Numerical input |
numKids >= 1
|
3 |
kid2 |
How old is your second child? |
Numerical input |
numKids >= 2
|
4 |
kid3 |
How old is your third child? |
Numerical input |
numKids >= 3
|
5 |
kid4 |
How old is your fourth child? |
Numerical input |
numKids >= 4
|
6 |
sumKidAges |
{sum(kid1.NAOK,kid2.NAOK,kid3.NAOK,kid4.NAOK)} |
Equation |
1
|
7 |
kidSummary |
You said that you have {numKids}. {if(numKids==1,'child','children')}. {if(numKids>1,implode(' ','The sum of ages of your first ',min(numKids,4),' kids is ',sumKidAges,'.'),' ')} |
Text display |
1
|