| Vraagcode |
Relevantie |
Vraagtype |
Vraag (Engels als in het voorbeeld)
|
| name |
1 |
text |
What is your name?
|
| age |
1 |
text |
How old are you?
|
| badage |
!is_empty(age) |
expr |
{(age<16) or (age>80)}
|
| agestop |
badage |
message |
Sorry, {name}, you are too {if( (age<16),'young',if( (age>80),'old','middle-aged') ) } for this test.
|
| kids |
!badage |
yesno |
Do you have children?
|
| parents |
1 |
expr |
{!badage && kids=='Y'}
|
| numKids |
parents |
text |
How many children do you have?
|
| kid1 |
parents && numKids >= 1 |
text |
How old is your first child?
|
| kid2 |
parents && numKids >= 2 |
text |
How old is your second child?
|
| kid3 |
parents && numKids >= 3 |
text |
How old is your third child?
|
| kid4 |
parents && numKids >= 4 |
text |
How old is your fourth child?
|
| kid5 |
parents && numKids >= 5 |
text |
How old is your fifth child?
|
| sumage |
1 |
expr |
{sum(kid1.NAOK,kid2.NAOK,kid3.NAOK,kid4.NAOK,kid5.NAOK)}
|
| report |
parents |
text |
{name}, you said you are {age} and that you have {numKids}. The sum of ages of your first {min(numKids,5)} kids is {sumage}
|