IF statement with comparison operator

More
4 years 2 weeks ago - 4 years 2 weeks ago #113010 by saam
saam created the topic: IF statement with comparison operator
I am relatively rookie in lime survey, but this simple error has driven me nuts. I am trying to incorporate an if statement in one of the equation type questions. The if statement works fine with equality sign ( i.e. ==) but does not recognize the greater than sign (I am using >). Lime survey doesn't simply recognize the sign!

am i missing something here? I have looked up for comparison operators for PHP and I think I am doing it right. Right?
Attachments:
Last Edit: 4 years 2 weeks ago by saam.

Please Identificarse or Create an account to join the conversation.

More
4 years 2 weeks ago #113016 by DenisChenu
DenisChenu replied the topic: IF statement with comparison operator
Hi,

What is your LimeSurvey build number.

manual.limesurvey.org/Expression_Manager#HTML_editor_issue

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .
The following user(s) said Thank You: saam

Please Identificarse or Create an account to join the conversation.

More
4 years 1 week ago #113147 by saam
saam replied the topic: IF statement with comparison operator
it's Version 2.05+ Build 140717

Do you think it is related to the version?

Please Identificarse or Create an account to join the conversation.

More
4 years 1 week ago #113148 by DenisChenu
DenisChenu replied the topic: IF statement with comparison operator

saam wrote: it's Version 2.05+ Build 140717

Do you think it is related to the version?

I give you a link with some information.
It's an HTML editor issue.

Please read it ....

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Identificarse or Create an account to join the conversation.

More
4 years 1 week ago #113179 by saam
saam replied the topic: IF statement with comparison operator
Oh, thank you. I just read your link more carefully.

I tried ge for >=. The letters are not recognized now as an operator! Do I need to use a prefix?

Moreover, in the link you sent me, it says this issue is resolved after 2.06 build 140803. Where is this version available? the latest version on this website is 2.05+!

Please Identificarse or Create an account to join the conversation.

More
4 years 1 week ago #113181 by DenisChenu
DenisChenu replied the topic: IF statement with comparison operator
Hi,

Can you provide a sreenshot ?
Did you put some space before and after ge ?

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 (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Identificarse or Create an account to join the conversation.

More
4 years 1 week ago #113196 by saam
saam replied the topic: IF statement with comparison operator
My bad. The text color does not change, but it's working (i.e. it's recognized). Many thanks... :)

Please Identificarse or Create an account to join the conversation.

¡Comenzar ahora!

Simplemente cree una cuenta y comience a usar LimeSurvey hoy mismo.

Registrarse ahora
¡Únase a nuestro boletín informativo!

Iniciar sesión