Ad Widget

Collapse

Syntax Help -- Last Two Returns Greater Than

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jimbrewski
    Junior Member
    • Sep 2010
    • 16

    #1

    Syntax Help -- Last Two Returns Greater Than

    Okay, help the old guy out here. Is there a syntax in a trigger that will trigger an action if the last two values are greater than a specific number? For example, I want a trigger to execute if the last two consecutive values are greater than 12. If the previous value is 11 and the most recent value is 12 -- then no trigger. Or if the previous value is 12 and the most recent value is 11 -- again no trigger. However if they are both 12, then I want the trigger to execute. Thank You.
  • ArtemK
    Senior Member
    • May 2013
    • 232

    #2
    peace of kake
    Code:
    {host:item.last(#1)}>12 & {host:item.last(#2)}>12

    Comment

    • jimbrewski
      Junior Member
      • Sep 2010
      • 16

      #3
      Thank You

      Thank You.

      Comment

      Working...