• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

If conditionals with operations

swatme

Well-known member
#1
Hi

i want to achieve that if the datetime posted is still within 30 seconds of the server time

<xen:if is="{$serverTime} - datepostime = 30">
hey wait for 30 seconds
<xen:else />
ok your good to go
</xen:if>

is that possible in if conditionals where there is subtraction ?
how to achieve that in if conditionals?

thanks
 
S

Syndol

Guest
#2
Assuming you are in the post message area:
<xen:if is="{xen:calc '{$serverTime} - {$message.post_date}'} < 30">
 

swatme

Well-known member
#3
nice!

syndol where can i get a list of that {xen:othercommands ?
any url of the list of xen: commands like xen:date , xen:calc and so on?