Ad Widget

Collapse

Are string operators supported?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gid
    Junior Member
    • Jun 2015
    • 14

    #1

    Are string operators supported?

    Is it possible for me to access the Nth character of a macro?

    e.g. an operator called "foobar" such that foobar(TRIGGER.NAME,7) would return the 7th character of the TRIGGER.NAME

    Thanks!
    Last edited by gid; 05-02-2016, 16:44.
  • gid
    Junior Member
    • Jun 2015
    • 14

    #2
    Well, apparently such operators are not supported.

    What I need is to identify the trigger from within the action. The ID is not suitable, it's db-generated. The Name and Description are only helpful if I can stick the id I want into one of them and then extract it from them with that operator I was asking about, but that seems unlikely. Using the Name as a whole is not good because it contains non-latin text and I want to send this parameter back to the host and into a shell script that will take some action.

    Can you think of another way??? Can I define my own parameter inside the trigger? I really doubt it.
    Last edited by gid; 08-02-2016, 14:44.

    Comment

    Working...