Welcome, Guest
Username: Password: Remember me

TOPIC: how to use EM in EM?

how to use EM in EM? 1 month 2 weeks ago #109806

  • iscar
  • iscar's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 177
  • Thank you received: 1
  • Karma: 0
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 month 2 weeks ago #109809

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6205
  • Thank you received: 787
  • Karma: 238
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 month 2 weeks ago by DenisChenu. Reason: Fake whitespace
The administrator has disabled public write access.

how to use EM in EM? 1 month 2 weeks ago #109813

  • iscar
  • iscar's Avatar
  • OFFLINE
  • Gold Lime
  • Posts: 177
  • Thank you received: 1
  • Karma: 0
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 month 2 weeks ago #109814

  • Ben_V
  • Ben_V's Avatar
  • OFFLINE
  • Platinum Lime
  • Posts: 1061
  • Thank you received: 234
  • Karma: 74
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

goo.gl/Bw5iM => Recherche GG dans le forum français (remplacer "exemple" dans la barre de recherche)
goo.gl/WX8PH => GG search for english forum (Replace "example" in the search bar)
goo.gl/IxiGu => Búsqueda en el foro en español (Cambiar "ejemplo" en la barra de...
Last Edit: 1 month 2 weeks 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.354 seconds
Donation Image