Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

To display ramdomly not selected choice

  • Chouchicorita
  • Chouchicorita's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 2 months ago - 4 years 2 months ago #215232 by Chouchicorita
Replied by Chouchicorita on topic To display ramdomly not selected choice
Hi,

I have another question. Actually the same structure but in an opposite situation.

If i want to show the letter "E" only if the Qrestaurant is selected C, what do i have to do ?
I tried if(is_empty(Q1_SQ005) and Qrestaurant="C","E","") and it didn't work. It seems contain errors..

Thank you for your reply
Last edit: 4 years 2 months ago by Chouchicorita.
The topic has been locked.
  • Joffm
  • Joffm's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 2 months ago #215236 by Joffm
Replied by Joffm on topic To display ramdomly not selected choice
Hi,
your syntax is wrong.

if(is_empty(Q1_SQ005) and Qrestaurant="C","E","")
You use a single equal sign. This is an assignment not a comparison.
[url] www.limesurvey.org/manual/ExpressionScri...esentation#Operators [/url]
[url] www.limesurvey.org/manual/ExpressionScri...t_Operator_.28.3D.29 [/url]

Joffm

 

Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose