Welcome to the LimeSurvey Community Forum

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

How to test if current unix timestamp is less than specified timestamp

More
9 years 8 months ago #110790 by Qsgt
Hi,

I have a survey in which I need to test to see if the current time stamp is greater than a specified timestamp I am using this code
Code:
The time is {gmdate("l jS \of F Y")}  this means that the {if(time()<1414713600,'early',if(time()<1414800000,'standard','late')}rate will apply to this registration.
 
this registration must be completed in the next {if(time()<1414713600,time()-1414713600,if(time()<1414800000,time()-1414800000,time()-1419638400)}secounds in order to still be eleagable for this rate

How ever I keep getting unsupported syntax erors. Does anyone know why?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 8 months ago #110795 by DenisChenu
Can you show the Expression Manager screen please ?

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.
More
9 years 8 months ago #110801 by Qsgt
Please see the attached screenshot of the screen showing the syntax errors. I am wanting to put the code into the welcome screen on the survey. Hovering over the errors returns : unsupported syntax errors




Thanks for the help,
qsgt
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 8 months ago #110802 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.
The following user(s) said Thank You: Qsgt
The topic has been locked.
More
9 years 8 months ago #110861 by Qsgt
Thanks a lot it works perfectly now!

qsgt
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose