- Posts: 169
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
what's the diff of ' and '' ?
- iscar
- Topic Author
- Offline
- Elite Member
Less
More
8 years 11 months 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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13912
- Thank you received: 2549
8 years 11 months ago - 8 years 11 months ago #119362
by DenisChenu
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.
Replied by DenisChenu on topic what's the diff of ' and '' ?
None,
except if you use to show it to your user, exemple:
: BAD
: GOOD
except if you use to show it to your user, exemple:
Code:
{if(1,"This is "quoted"","")}
Code:
{if(1,'This is "quoted"',"")}
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: 8 years 11 months ago by DenisChenu.
The topic has been locked.
- iscar
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 169
- Thank you received: 0
8 years 11 months 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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13912
- Thank you received: 2549
8 years 11 months ago #119373
by DenisChenu
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.
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.
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
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 169
- Thank you received: 0
8 years 11 months 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?
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13912
- Thank you received: 2549
8 years 11 months ago #119378
by DenisChenu
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.
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
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
- Topic Author
- Offline
- Elite Member
Less
More
- Posts: 169
- Thank you received: 0
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.
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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13912
- Thank you received: 2549
8 years 11 months ago #119392
by DenisChenu
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.
Replied by DenisChenu on topic what's the diff of ' and '' ?
I don't understand ?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.
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.