Welcome, Guest
Username: Password:

TOPIC: how to use EM in EM?

how to use EM in EM? 1 year 11 months ago #109806

  • iscar
  • iscar's Avatar
  • Offline
  • Banned
  • Posts: 312
  • Thank you received: 1
  • Karma: -4
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?
The administrator has disabled public write access.

how to use EM in EM? 1 year 11 months ago #109809

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 8886
  • Thank you received: 1240
  • Karma: 372
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)}
Last Edit: 1 year 11 months ago by DenisChenu. Reason: Fake whitespace
The administrator has disabled public write access.

how to use EM in EM? 1 year 11 months ago #109813

  • iscar
  • iscar's Avatar
  • Offline
  • Banned
  • Posts: 312
  • Thank you received: 1
  • Karma: -4
yes, can i use
{if(q1.NAOK=="1",'your answer is {q1.shown}','your answer value is {q1.NAOK}')}
?
The administrator has disabled public write access.

how to use EM in EM? 1 year 11 months ago #109814

  • Ben_V
  • Ben_V's Avatar
  • Online
  • Platinum Lime
  • Posts: 1708
  • Thank you received: 423
  • Karma: 106
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
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
Last Edit: 1 year 11 months ago by Ben_V.
The administrator has disabled public write access.
The following user(s) said Thank You: DenisChenu
Moderators: ITEd
Time to create page: 0.205 seconds