Ad Widget

Collapse

Comparing item with current year

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Comparing item with current year

    I have an item that returns one year read from a file (the item is OK i can see it in the lastest data) and i want to check it against the current year (in fact check if its less than current_year-10) I know that there is a Date function, but when i try to put it in the trigger it gives this error
    • Incorrect trigger expression. Check expression part starting from "<{DATE}".
    Actually i'm using it this way
    {template:key.last()}<2009

    I also tried server_name:system.localtime, but it gives another error (value don't exist)

    Does anyon know how can i make it without the 'magic number', with the year read in the server?

Announcement

Collapse
No announcement yet.
Working...
X