Display condition for Form

Dear commcare users

I was trying to display a Form based on the condition below

./FM_Q4_sex = ‘female’ and (./Age_in_years <=15) and (./Age_in_years >=50)
or ./FM_Q4_sex = ‘male’ and( ./Age_in_years <=15) and (./Age_in_years >=
59)

The form is not showing up.I can’t figure out what the error is.It would be
good if i get quick help.

With best regards,

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215
Skype : tewelde.aregawi1
Face Book : tewelde aregawi

Courage, Strength, Determination, Compassion, Loyalty, Selflessness and
Confidence
Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype

Hi Twelde,

This part of your condition:
(./Age_in_years <=15) and (./Age_in_years >=50)

seems likely to be the problem. Those two expressions seem to be mutually
exclusive to me, did you mean to have the greater-than/less-than symbols
reversed?

-Clayton

··· On Thu, Dec 17, 2015 at 11:23 AM, Tewelde Aregawi wrote:

Dear commcare users

I was trying to display a Form based on the condition below

./FM_Q4_sex = ‘female’ and (./Age_in_years <=15) and (./Age_in_years >=50)
or ./FM_Q4_sex = ‘male’ and( ./Age_in_years <=15) and (./Age_in_years >=
59)

The form is not showing up.I can’t figure out what the error is.It would
be good if i get quick help.

With best regards,

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215
Skype : tewelde.aregawi1
Face Book : tewelde aregawi

Courage, Strength, Determination, Compassion, Loyalty, Selflessness and
Confidence
Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dear Clayton

Thanks for the quick response

I just need to display the form when age less than 15 and more than 50 for
woman and age less than 15 and more than 59 for male.With inclusive

best

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215
Skype : tewelde.aregawi1
Face Book : tewelde aregawi

Courage, Strength, Determination, Compassion, Loyalty, Selflessness and
Confidence
Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype

··· On Thu, Dec 17, 2015 at 8:28 AM, Clayton Sims wrote:

Hi Twelde,

This part of your condition:
(./Age_in_years <=15) and (./Age_in_years >=50)

seems likely to be the problem. Those two expressions seem to be mutually
exclusive to me, did you mean to have the greater-than/less-than symbols
reversed?

-Clayton

On Thu, Dec 17, 2015 at 11:23 AM, Tewelde Aregawi <teweldino.mvp@gmail.com wrote:

Dear commcare users

I was trying to display a Form based on the condition below

./FM_Q4_sex = ‘female’ and (./Age_in_years <=15) and (./Age_in_years

=50) or ./FM_Q4_sex = ‘male’ and( ./Age_in_years <=15) and
(./Age_in_years >= 59)

The form is not showing up.I can’t figure out what the error is.It would
be good if i get quick help.

With best regards,

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215
Skype : tewelde.aregawi1
Face Book : tewelde aregawi

Courage, Strength, Determination, Compassion, Loyalty, Selflessness and
Confidence
Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi
Please try changing the second AND to OR and repeat the first part where
you are testing if female.

Do same for the male part

Yaw

··· On Dec 17, 2015 4:39 PM, "Tewelde Aregawi" wrote:

Dear Clayton

Thanks for the quick response

I just need to display the form when age less than 15 and more than 50
for woman and age less than 15 and more than 59 for male.With inclusive

best

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215
Skype : tewelde.aregawi1
Face Book : tewelde aregawi

Courage, Strength, Determination, Compassion, Loyalty, Selflessness and
Confidence
Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype

On Thu, Dec 17, 2015 at 8:28 AM, Clayton Sims csims@dimagi.com wrote:

Hi Twelde,

This part of your condition:
(./Age_in_years <=15) and (./Age_in_years >=50)

seems likely to be the problem. Those two expressions seem to be mutually
exclusive to me, did you mean to have the greater-than/less-than symbols
reversed?

-Clayton

On Thu, Dec 17, 2015 at 11:23 AM, Tewelde Aregawi < teweldino.mvp@gmail.com> wrote:

Dear commcare users

I was trying to display a Form based on the condition below

./FM_Q4_sex = ‘female’ and (./Age_in_years <=15) and (./Age_in_years

=50) or ./FM_Q4_sex = ‘male’ and( ./Age_in_years <=15) and
(./Age_in_years >= 59)

The form is not showing up.I can’t figure out what the error is.It would
be good if i get quick help.

With best regards,

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215
Skype : tewelde.aregawi1
Face Book : tewelde aregawi

Courage, Strength, Determination, Compassion, Loyalty, Selflessness and
Confidence
Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Yaw

Thanks

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215
Skype : tewelde.aregawi1
Face Book : tewelde aregawi

Courage, Strength, Determination, Compassion, Loyalty, Selflessness and
Confidence
Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype

··· On Thu, Dec 17, 2015 at 8:48 AM, YAW ANTWI-ADJEI wrote:

Hi
Please try changing the second AND to OR and repeat the first part where
you are testing if female.

Do same for the male part

Yaw
On Dec 17, 2015 4:39 PM, “Tewelde Aregawi” teweldino.mvp@gmail.com wrote:

Dear Clayton

Thanks for the quick response

I just need to display the form when age less than 15 and more than 50
for woman and age less than 15 and more than 59 for male.With inclusive

best

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215
Skype : tewelde.aregawi1
Face Book : tewelde aregawi

Courage, Strength, Determination, Compassion, Loyalty, Selflessness and
Confidence
Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype

On Thu, Dec 17, 2015 at 8:28 AM, Clayton Sims csims@dimagi.com wrote:

Hi Twelde,

This part of your condition:
(./Age_in_years <=15) and (./Age_in_years >=50)

seems likely to be the problem. Those two expressions seem to be
mutually exclusive to me, did you mean to have the greater-than/less-than
symbols reversed?

-Clayton

On Thu, Dec 17, 2015 at 11:23 AM, Tewelde Aregawi < teweldino.mvp@gmail.com> wrote:

Dear commcare users

I was trying to display a Form based on the condition below

./FM_Q4_sex = ‘female’ and (./Age_in_years <=15) and (./Age_in_years

=50) or ./FM_Q4_sex = ‘male’ and( ./Age_in_years <=15) and
(./Age_in_years >= 59)

The form is not showing up.I can’t figure out what the error is.It
would be good if i get quick help.

With best regards,

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215
Skype : tewelde.aregawi1
Face Book : tewelde aregawi

Courage, Strength, Determination, Compassion, Loyalty, Selflessness and
Confidence
Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi Tewelde,

It’s also important to be careful when mixing multiple “and” and "or"
expressions together, as you might end up with unexpected behavior unless
you explicitly specify which conditions should be grouped together using
parentheses. Here’s your original expression, using “or” for the age
ranges, and grouping the conditions together appropriately based on the
behavior you mentioned earlier:

(./FM_Q4_sex = ‘female’ and ((./Age_in_years <= 15) or (./Age_in_years >=
50))) or (./FM_Q4_sex = ‘male’ and ((./Age_in_years <= 15) or
(./Age_in_years >= 59)))

Thanks,
Giovanni

··· On Thu, Dec 17, 2015 at 12:31 PM, Tewelde Aregawi wrote:

Hi Yaw

Thanks

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215
Skype : tewelde.aregawi1
Face Book : tewelde aregawi

Courage, Strength, Determination, Compassion, Loyalty, Selflessness and
Confidence
Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype

On Thu, Dec 17, 2015 at 8:48 AM, YAW ANTWI-ADJEI yawantwiadjei@gmail.com wrote:

Hi
Please try changing the second AND to OR and repeat the first part where
you are testing if female.

Do same for the male part

Yaw
On Dec 17, 2015 4:39 PM, “Tewelde Aregawi” teweldino.mvp@gmail.com wrote:

Dear Clayton

Thanks for the quick response

I just need to display the form when age less than 15 and more than 50
for woman and age less than 15 and more than 59 for male.With inclusive

best

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215
Skype : tewelde.aregawi1
Face Book : tewelde aregawi

Courage, Strength, Determination, Compassion, Loyalty, Selflessness and
Confidence
Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype

On Thu, Dec 17, 2015 at 8:28 AM, Clayton Sims csims@dimagi.com wrote:

Hi Twelde,

This part of your condition:
(./Age_in_years <=15) and (./Age_in_years >=50)

seems likely to be the problem. Those two expressions seem to be
mutually exclusive to me, did you mean to have the greater-than/less-than
symbols reversed?

-Clayton

On Thu, Dec 17, 2015 at 11:23 AM, Tewelde Aregawi < teweldino.mvp@gmail.com> wrote:

Dear commcare users

I was trying to display a Form based on the condition below

./FM_Q4_sex = ‘female’ and (./Age_in_years <=15) and (./Age_in_years

=50) or ./FM_Q4_sex = ‘male’ and( ./Age_in_years <=15) and
(./Age_in_years >= 59)

The form is not showing up.I can’t figure out what the error is.It
would be good if i get quick help.

With best regards,

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215
Skype : tewelde.aregawi1
Face Book : tewelde aregawi

Courage, Strength, Determination, Compassion, Loyalty, Selflessness
and Confidence
Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “commcare-users” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Many thanks Giovanni

Hi Tewelde,
It’s also important to be careful when mixing multiple “and” and "or"
expressions together, as you might end up with unexpected behavior unless
you explicitly specify which conditions should be grouped together using
parentheses. Here’s your original expression, using “or” for the age
ranges, and grouping the conditions together appropriately based on the
behavior you mentioned earlier:
(./FM_Q4_sex = ‘female’ and ((./Age_in_years <= 15) or (./Age_in_years >=
50))) or (./FM_Q4_sex = ‘male’ and ((./Age_in_years <= 15) or
(./Age_in_years >= 59)))

Thanks,
Giovanni

Hi Yaw
Thanks

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215

Skype : tewelde.aregawi1
Face Book : tewelde aregawi
Courage, Strength, Determination, Compassion, Loyalty, Selflessness and
Confidence

Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype

Hi
Please try changing the second AND to OR and repeat the first part
where you are testing if female.

Do same for the male part

Yaw

Dear Clayton
Thanks for the quick response

I just need to display the form when age less than 15 and more than
50 for woman and age less than 15 and more than 59 for male.With inclusive

best

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215

Skype : tewelde.aregawi1
Face Book : tewelde aregawi
Courage, Strength, Determination, Compassion, Loyalty, Selflessness
and Confidence

Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype

Hi Twelde,
This part of your condition:
(./Age_in_years <=15) and (./Age_in_years >=50)

seems likely to be the problem. Those two expressions seem to be
mutually exclusive to me, did you mean to have the greater-than/less-than
symbols reversed?

-Clayton

Dear commcare users
I was trying to display a Form based on the condition below
./FM_Q4_sex = ‘female’ and (./Age_in_years <=15) and (./Age_in_years
=50) or ./FM_Q4_sex = ‘male’ and( ./Age_in_years <=15) and
(./Age_in_years >= 59)

The form is not showing up.I can’t figure out what the error is.It
would be good if i get quick help.

With best regards,

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215

Skype : tewelde.aregawi1
Face Book : tewelde aregawi
Courage, Strength, Determination, Compassion, Loyalty, Selflessness
and Confidence

Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype


You received this message because you are subscribed to the Google
Groups “commcare-users” group.

To unsubscribe from this group and stop receiving emails from it,
send an email to commcare-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “commcare-users” group.

To unsubscribe from this group and stop receiving emails from it,
send an email to commcare-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “commcare-users” group.

To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “commcare-users” group.

To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google
Groups “commcare-users” group.

To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-users+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"commcare-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-users+unsubscribe@googlegroups.com.

··· On Thursday, December 17, 2015, Giovanni Capalbo wrote: > On Thu, Dec 17, 2015 at 12:31 PM, Tewelde Aregawi wrote: >> On Thu, Dec 17, 2015 at 8:48 AM, YAW ANTWI-ADJEI wrote: >>> On Dec 17, 2015 4:39 PM, "Tewelde Aregawi" wrote: >>>> On Thu, Dec 17, 2015 at 8:28 AM, Clayton Sims wrote: >>>>> On Thu, Dec 17, 2015 at 11:23 AM, Tewelde Aregawi < teweldino.mvp@gmail.com> wrote: > For more options, visit https://groups.google.com/d/optout. >

Tewelde Aregawi

E-Health Specialist

MVP(MDE)

Tigray/Hawzein

Mobile +251933730215
Skype : tewelde.aregawi1
Face Book : tewelde aregawi

Courage, Strength, Determination, Compassion, Loyalty, Selflessness and
Confidence
Call
Send SMS
Add to Skype
You’ll need Skype CreditFree via Skype