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

If conditionals with operations

Discussion in 'Styling and Customization Questions' started by swatme, Jul 26, 2012.

  1. swatme

    swatme Well-Known Member


    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

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

  2. Syndol

    Syndol Guest

    Assuming you are in the post message area:
    <xen:if is="{xen:calc '{$serverTime} - {$message.post_date}'} < 30">
    swatme likes this.
  3. swatme

    swatme Well-Known Member


    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?
  4. Syndol

    Syndol Guest

    swatme likes this.

Share This Page