How to specify several possible answers from select_one list

Hello to everybody!
Yesterday my problem with NOT operator was solved, many thanks to khamash.
Now I have another question: how can I write expression based on two or
more options from select_one list? I am trying to do it using
(selected(${a2}, ('a1.1' or 'a1.2'))) but it doesn't work. Can you help me
please? Thank you very much in advance.

I could perform this task using next expression:

(selected(${a2}, 'a1.1' )) or (selected(${a2}, 'a1.2' )) or
(selected(${a2}, 'a1.3' )) or (selected(${a2}, 'a1.4' )) or
(selected(${a2}, 'a1.5' ))

But I'm shure, there must be much more elegant and short solution.

пятница, 19 февраля 2016 г., 12:30:18 UTC+4 пользователь Alexander
Kobiashvili написал:

··· > > Hello to everybody! > Yesterday my problem with NOT operator was solved, many thanks to khamash. > Now I have another question: how can I write expression based on two or > more options from select_one list? I am trying to do it using > (selected(${a2}, ('a1.1' or 'a1.2'))) but it doesn't work. Can you help me > please? Thank you very much in advance. >

Hi Alexander,

That's as short as it's going to get. For future reference, the list
of expressions are at
https://opendatakit.org/help/form-design/binding/.

Yaw

··· -- Need ODK consultants? Nafundi provides form design, server setup, in-field training, and software development for ODK. Go to https://nafundi.com to get started.

On Fri, Feb 19, 2016 at 12:07 PM, Alexander Kobiashvili alexkobiashvili@gmail.com wrote:

I could perform this task using next expression:

(selected(${a2}, 'a1.1' )) or (selected(${a2}, 'a1.2' )) or (selected(${a2},
'a1.3' )) or (selected(${a2}, 'a1.4' )) or (selected(${a2}, 'a1.5' ))

But I'm shure, there must be much more elegant and short solution.

пятница, 19 февраля 2016 г., 12:30:18 UTC+4 пользователь Alexander
Kobiashvili написал:

Hello to everybody!
Yesterday my problem with NOT operator was solved, many thanks to khamash.
Now I have another question: how can I write expression based on two or more
options from select_one list? I am trying to do it using (selected(${a2},
('a1.1' or 'a1.2'))) but it doesn't work. Can you help me please? Thank you
very much in advance.

--

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.