Forum Moderators: phranque
if ( second < 6 )
display page1
else if ( second < 13
display page2
else
display page3
This was my attempt but it's not working so I was hoping someone would be able to help me out. I first try and set a variable called second to the %s value of the server time, then I attempt to compare the second to the values I am checking against to display a certain page... I'm sure it's doable I'm just having a hard time figuring it out myself...
<!--#set var="second" value=%s-->
<!--#if expr="%s < 20"-->
<!--#include virtual="page1.html"-->
<!--#elif expr="%s < 40"-->
<!--#include virtual="page2.html"-->
<!--#else-->
<!--#include virtual="page3.html"-->
<!--#endif-->
<!--#config timefmt="%S" -->
<!--#if expr="$DATE_LOCAL < /20/" -->
<!--#include virtual="page1.html"-->
<!--#elif expr="%DATE_LOCAL < /40/"-->
<!--#include virtual="page2.html"-->
<!--#else-->
<!--#include virtual="page3.html"-->
<!--#endif-->