|
Einder Novice
Joined: 03 Jan 2008 Posts: 48
|
Posted: Thu Nov 20, 2014 4:19 am
is not in a variable trigger |
I've tried searching the forums for this, but haven't seen anything on it. As well the help files don't say anything at all about it. What I'm tringing to do is use a trigger with a variable, only instead of checking against the variable and coming back true, I only want it to comeback when it's false.
For example:
Code: |
#TRIGGER {^({@GroupMembers|Einder}) %s - *} {ZoneEmpty=0} "" {within|param=10} |
This will currently fire when it's true. When I try to set it to fire when it's false..
Code: |
#TRIGGER {^({^@GroupMembers|Einder}) %s - *} {ZoneEmpty=0} "" {within|param=10} |
the trigger never fires. How would I adjust this so that when it's false it fires properly? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat Nov 22, 2014 6:52 am |
You may need to convert to regex for this, but really why go to all that trouble (assuming you don't already know regex) when a simple #IF command in the trigger code will work?
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Einder Novice
Joined: 03 Jan 2008 Posts: 48
|
Posted: Sun Nov 23, 2014 11:15 am |
I don't know regex, but guess I will need to learn it :S
As far as the if command, I'm not quite sure how I would write it. I keep thinking I would have to use several of them instead of one.
That and to be honest, the only reason the trigger keeps breaking is because of the | separator. Using it in string list variable it breaks and using it in the trigger itself it breaks. Haven't quite been able to figure out why or how to fix it yet. |
|
|
|
|
|