Welcome, Guest
Username: Password: Remember me

TOPIC: "Undefined variable" TOKEN:LANGUAGE

"Undefined variable" TOKEN:LANGUAGE 1 year 3 weeks ago #100463

  • jonsen
  • jonsen's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 73
  • Thank you received: 6
  • Karma: 1
Hello everyone!

I get an "undefined variable" error for the variable TOKEN:LANGUAGE, which I selected using the condition manager. I totally don't understand this error, as this is a closed survey and the language-field is standard in all token tables.... Can anyone shine a light?

Trying to use {TOKEN:LANGUAGE} within a text element also produces an "undefined variable" error.

Best
Jonsen
The administrator has disabled public write access.

"Undefined variable" TOKEN:LANGUAGE 1 year 3 weeks ago #100566

  • jonsen
  • jonsen's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 73
  • Thank you received: 6
  • Karma: 1
This is not actually an error, rather a very minor bug.

The variables are not set until the query is executed once, so entering the test survey will get rid of the "undefined" error.

Maybe the syntax check should check the token table for the existence of a TOKEN:... variable, rather then being dependent on the execution of the survey... But yeah, rather unimportant. A little confusing though. (Hey, everybody hates red stuff in their survey logic file!)

Best
Jonsen
The administrator has disabled public write access.

"Undefined variable" TOKEN:LANGUAGE 1 year 3 weeks ago #100575

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6472
  • Thank you received: 854
  • Karma: 254
Hi,

Please : time to fill a bug report :)
Last Edit: 1 year 3 weeks ago by DenisChenu. Reason: not big, bug ....
The administrator has disabled public write access.

"Undefined variable" TOKEN:LANGUAGE 1 year 3 weeks ago #100583

  • jonsen
  • jonsen's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 73
  • Thank you received: 6
  • Karma: 1
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.091 seconds
Donation Image