Hi all,
Can I use ‘and’ and ‘or’ used together in a one logic.
Hi @pyonethazin,
Indeed you can
But it didn’t work when I try. Could you explain, plz?
I can try to help you with that. Can you show a screenshot of your skip logic
?
Are you using KoBo Toolbox’s internal editor or are you using xml file to add your skip logic
?
I want to do like this.
Hi @pyonethazin,
I can’t see the full screenshot, can you share it again?
@pyonethazin, maybe you will need to try this out:
${price} !='' or (${occupation}='farmer' and selected(${crop2}, '1'))
Note: you will need to use selected(${crop2}, '1')
instead of ${crop2}='1'
as crop2
is a select_multiple
question type.
Thank you, Kal Lam.
Hello,
To add: “or” and “and” must always be separated by brackets…
If I want to answer this question except farmer and 1, can I write that with NOT
like that
${price} !=’’ or not(${occupation}=‘farmer’ and selected(${crop2}, ‘1’))
Thank you.
You could play around.