Ad Widget

Collapse

Trigger: Compare value with value 30 days ago.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Voxie
    Junior Member
    • Jul 2009
    • 24

    #1

    Trigger: Compare value with value 30 days ago.

    Trigger: Compare value with value 30 days ago.

    We want to define a trigger that compares the value of a item with the value of the same item 30 days ago.

    If both value are the same it should generate a trigger.

    We have tried a couple of thing but without success:


    1.
    Code:
    {myitem.last(#1,30d)}
    = 
    {myitem.last(#1)}
    2.
    Code:
    {myitem.last(30d)}
    = 
    {myitem.last()}
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Try this instead as time shift is the second function parameter:
    Code:
    {myitem.last(,30d)}
    = 
    {myitem.last()}
    See:

    Comment

    • Voxie
      Junior Member
      • Jul 2009
      • 24

      #3
      It works!

      Thanks, it looks likes tis is the solution.

      Thank you!

      Comment

      Working...