Ad Widget

Collapse

Trigger - Compare against String

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jcesario
    Member
    • Apr 2009
    • 65

    #1

    Trigger - Compare against String

    I would like to create a trigger where I compare the .last of an Item against a string.

    Something like

    {My_Item} != "Foo"

    or

    {My_Item} == "Foo"

    Do I have to map against int values to do this? I havent been able to find a condition that accepts a string for N
  • MarkusL
    Member
    • Nov 2008
    • 41

    #2
    Hi!

    I´m not sure, if this is waht you are looking for:

    ({template:key[].regexp(MyString)}#0)

    This trigger says: when MyString is found in the item-value -> Trigger on.

    I use this f.e. for backup-exec

    ({backupexec:backupdaily[check].regexp(failed)}#0)
    --> Trigger goes on, when item gets a value "failed".


    Kind regards,

    Markus.

    Comment

    Working...