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
(But the first one will also work for select_one.)


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.


1 Like

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