Welcome to the LimeSurvey Community Forum

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

what's the diff of ' and '' ?

  • iscar
  • iscar's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
9 years 17 hours ago #119358 by iscar
what's the diff of ' and '' ? was created by iscar
a simple but complex question, what's the difference when i use '' and ""in EM?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 14 hours ago - 9 years 14 hours ago #119362 by DenisChenu
Replied by DenisChenu on topic what's the diff of ' and '' ?
None,

except if you use to show it to your user, exemple:
Code:
{if(1,"This is "quoted"","")}
: BAD
Code:
{if(1,'This is "quoted"',"")}
: GOOD

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 9 years 14 hours ago by DenisChenu.
The topic has been locked.
  • iscar
  • iscar's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
9 years 13 hours ago #119370 by iscar
Replied by iscar on topic what's the diff of ' and '' ?
hi Denis,
i ask this question because i notice some difference when i use them.
but i cannot get a clear picture.
something like{if(a>='1','','')}
{if(a>=1,'','')}
{if(a>="1",'','')}
but you say none difference,make me more confused.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 13 hours ago #119373 by DenisChenu
Replied by DenisChenu on topic what's the diff of ' and '' ?
a>='1' and a>="1" : compare string always
a>=1 : compare number if a is a number

For any difference : provide a simple lss file.

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • iscar
  • iscar's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
9 years 13 hours ago #119375 by iscar
Replied by iscar on topic what's the diff of ' and '' ?
if there's no diff, the below code is GOOD.is that right?
Code:
{if(1,"This is 'quoted'",'')}

I searched but didnot find that thread. seemed tpartner said.
it's some difference between AND, and && in EM.
we'd better use &&, it's standard syntax.
if you use AND, maybe has problem in special case.
i am not sure if that's common sence.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 12 hours ago #119378 by DenisChenu
Replied by DenisChenu on topic what's the diff of ' and '' ?
Hi,

With HTML editor : there can be problem with &&, better to use AND
With XSS protection : i think there can be problem with && (inside a href for example), better to use AND

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
  • iscar
  • iscar's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
8 years 11 months ago #119389 by iscar
Replied by iscar on topic what's the diff of ' and '' ?
so, let's cancel the && and, support only AND.is that better to focus on one thing?
use only english, do not put other language in ls, just as plugin.
use only mysql, do not support other sql in ls, just as plugin.
cover everything will lose something.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 11 months ago #119392 by DenisChenu
Replied by DenisChenu on topic what's the diff of ' and '' ?

iscar wrote: so, let's cancel the && and, support only AND.is that better to focus on one thing?
use only english, do not put other language in ls, just as plugin.
use only mysql, do not support other sql in ls, just as plugin.
cover everything will lose something.

I don't understand ?

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose