Conditional constraits

Hi there!

I wonder if it is possible to use conditional constraints. Is the correct
syntax "If(condition,true, false)"?? or is it only for 'calculate'??
I want to limit the constraint only to one option from a previous selec_one
Any help???
Thanxs a lot

Yes, you can use expressions that evaluate to a boolean value for any of
the:

(1) constraint
(2) relevant

fields.

··· On Thu, Jan 12, 2017 at 1:29 AM, Borja Puig wrote:

Hi there!

I wonder if it is possible to use conditional constraints. Is the correct
syntax "If(condition,true, false)"?? or is it only for 'calculate'??
I want to limit the constraint only to one option from a previous selec_one
Any help???
Thanxs a lot

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


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

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

Thank you Mitch,

And the condition for true can be a equation aswell?

Aggregate tells me that the syntax of the expression is wrong, and I dont
know really why... any guess?

the expression is:

if( selected(${activity_com_act}, 'awareness'), . =
(${females_5}+${females_5_17}+${females_18_49}+${females_50}+${males_5}+${males_5_17}+${males_18_49}+${males_50},
. >= 0))

thank you very much

··· 2017-01-12 22:41 GMT+02:00 Mitch Sundt :

Yes, you can use expressions that evaluate to a boolean value for any of
the:

(1) constraint
(2) relevant

fields.

On Thu, Jan 12, 2017 at 1:29 AM, Borja Puig borpuig@gmail.com wrote:

Hi there!

I wonder if it is possible to use conditional constraints. Is the correct
syntax "If(condition,true, false)"?? or is it only for 'calculate'??
I want to limit the constraint only to one option from a previous
selec_one
Any help???
Thanxs a lot

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


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

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/
topic/opendatakit/ZEtXK6Fh2fQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Your parentheses do not match up. You need a close-paren before the last
comma, and only one trailing close paren.

··· On Fri, Jan 13, 2017 at 2:16 AM, Borja Puig wrote:

Thank you Mitch,

And the condition for true can be a equation aswell?

Aggregate tells me that the syntax of the expression is wrong, and I dont
know really why... any guess?

the expression is:

if( selected(${activity_com_act}, 'awareness'), . =
(${females_5}+${females_5_17}+${females_18_49}+${females_50}
+${males_5}+${males_5_17}+${males_18_49}+${males_50}, . >= 0))

thank you very much

2017-01-12 22:41 GMT+02:00 Mitch Sundt mitchellsundt@gmail.com:

Yes, you can use expressions that evaluate to a boolean value for any of
the:

(1) constraint
(2) relevant

fields.

On Thu, Jan 12, 2017 at 1:29 AM, Borja Puig borpuig@gmail.com wrote:

Hi there!

I wonder if it is possible to use conditional constraints. Is the
correct syntax "If(condition,true, false)"?? or is it only for
'calculate'??
I want to limit the constraint only to one option from a previous
selec_one
Any help???
Thanxs a lot

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


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

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


You received this message because you are subscribed to a topic in the
Google Groups "ODK Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/to
pic/opendatakit/ZEtXK6Fh2fQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
opendatakit+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--

Post: opendatakit@googlegroups.com
Unsubscribe: opendatakit+unsubscribe@googlegroups.com
Options: http://groups.google.com/group/opendatakit?hl=en


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

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com