Ad Widget

Collapse

Do trigger expressions using last() work like math functions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • StefanK
    Junior Member
    • Jan 2023
    • 22

    #1

    Do trigger expressions using last() work like math functions

    I would like to know if i can do this for example:

    (last(key[],#1) and last(key[],#2) and last(key[],#3)) = "x"

    or do i have to do:

    last(key[],#1) = "x" and last(key[],#2) = "x" and ​​​​​​last(key[],#3) = "x"
  • kyus
    Senior Member
    • Feb 2024
    • 171

    #2
    This one will work:
    Originally posted by StefanK
    (last(key[],#1) and last(key[],#2) and last(key[],#3)) = "x"
    Just keep in mind that last(key[],#1) is the latest value, last(key[],#2) is the second latest value and so on...
    If that's what you need, then yes, it'll work.

    Comment

    Working...