[ODK Community] selected function "greater than 0"

It is unclear what you are trying to do.

See the available functions at

The condition would be

${otherfield} > 0

This assumes that ${otherfield} is a number or integer field.

If it is a string field, you will need to convert it to a number via
number(${otherfield}) but that can fail on non-numeric values.

The selected() function is only used for select-one and select-multiple

··· On Sun, Jan 17, 2016 at 7:51 AM, wrote:


I would like to condition the appearance of a certain item depending on
whether a previous one "is greater than 0"? I thought of using
selected(${question_name},'>0') in the relevant column but I get an error.
I have tried selected(number(${dev_agent}), '.>0') because I suspected a
string/numeric issue but this does not work either.

Any idea?

This seems basic but I can't seem to find the solution.



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