Hi

I'm trying to find a way to complete the following task.

The person who is conducting a household level survey - asks how many people are living in the house - Answer X

They then ask about each age group. 0 - 5yr = A, 5- 18 = B etc

I would like to then complete a "sense check"

To display a note that says the following:

**You entered ${n_total_members} as total members in group.**

**From the numbers you entered the total members count is ${n_total_members_calculated}.**

**Please check the equality of those numbers and acknowledge accordingly.**

And i would like them not to be able to complete the form until the two numbers match.

i'm unable to attach the form as a new user so here is my best attempt at copy and paste for you.

integer n_total_members Total number of members living now under the same roof (INCLUDING Head of Household) yes

end group

begin group ages_part_one Ages

select_one num w_over60 Total number of WOMEN over age 60 yes

select_one num m_over60 Total number of MEN over age 60 yes

select_one num w_over18 Total number of WOMEN between age 18 to 60 yes

select_one num m_over18 Total number of MEN between age 18 to 60 yes

end group

begin group ages_part_two Ages

select_one num g_over15 Total number of GIRLS age 14 - 17 yes

select_one num b_over15 Total number of BOYS age 14 - 17 yes

select_one num g_over5 Total number of GIRLS age 5 - 13 yes

select_one num b_over5 Total number of BOYS age 5 - 13 yes

select_one num g_under4 Total number of GIRLS age 0 - 4 yes

select_one num b_under4 Total number of BOYS age 0 - 4 yes

calculate n_total_members_calculated ${w_over60}+${m_over60}+${w_over18}+${m_over18}+${g_over15}+${b_over15}+${g_over5}+${b_over5}+${g_under4}+${b_under4}

note entry_check "You entered ${n_total_members} as total members in group.

From the numbers you entered the total members count is ${n_total_members_calculated}.

Please check the equality of those numbers and acknowledge accordingly." ${n_total_members}!=${n_total_members_calculated}

Currently the calculation works - when i download the raw data i can see it works fine.

The only issue is the entry_check. Any ideas?

Thanks in advance for your help

Nick