how to use EM in EM?

More
2 years 11 months ago #109806 by iscar
iscar created the topic: how to use EM in EM?
text display question,
{if(q1.value==1,'your answer is q1.shown','your answer value is q1.value')}
the q1.shown and q1.value should be run as EM but not. what's the problem?

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #109809 by DenisChenu
DenisChenu replied the topic: how to use EM in EM?
Hi,

q1.value : the assesment value. Assesment is set for this survey ?

With NAOK (with Question code)
{ifq1.NAOK=="1",'your answer is '+q1.shown,'your answer value is '+q1.NAOK}
or
{ifq1.NAOK=="1",join('your answer is ',q1.shown),join('your answer value is ',q1.NAOK)}

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
Last Edit: 2 years 11 months ago by DenisChenu. Reason: Fake whitespace

Please Log in to join the conversation.

More
2 years 11 months ago #109813 by iscar
iscar replied the topic: how to use EM in EM?
yes, can i use
{if(q1.NAOK=="1",'your answer is {q1.shown}','your answer value is {q1.NAOK}')}
?

Please Log in to join the conversation.

More
2 years 11 months ago - 2 years 11 months ago #109814 by Ben_V
Ben_V replied the topic: how to use EM in EM?
Definitively NO:
you cannot embed {some other expression} inside your {main expression}

As Denis said, the correct syntax in something very closed to:
{if(q1.NAOK=="1",'your answer is '+ q1.shown,'your answer value is '+q1.NAOK)}

Note: due probably to strange copy and paste, the beiginning of your example is corrupted and source of issues...
Wrong: {if( (fake white space)
Correct: {if (

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last Edit: 2 years 11 months ago by Ben_V.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now