What is the difference between the two expression?

What is the difference between selected(${agreetoparticipate}, ‘Yes’) and ${agreetoparticipate} = ‘Yes’

Hello @bkgwadi,
You use the first one (selected …) for select_multiple, the second one for select_one. See documentation
https://support.kobotoolbox.org/skip_logic.html?highlight=selected
(But the first one will also work for select_one.)

2 Likes

@bkgwadi
This is as mentioned by @wroos however if you used the second one for a select multiple question; then the condition is that only if yes is the only select option.

Stephane

1 Like

Hi,
As this is relating to system implementation details (multiple choices stored in a blank separated string, in selected order of entry), I would not recommend to use this.
Nevertheless, this could even be used as a trick for single item choice constraint (like none can only be selected alone.) :shushing_face:

1 Like