|
jolopez Novice
Joined: 31 May 2003 Posts: 49
|
Posted: Tue Sep 16, 2003 12:05 am
question about triggers on same line |
i want a trigger that fires on same line example
pattern: hello
value: #show eco
if i put in the same line :
hello and hello i want to see
eco
eco
does the people understand? |
|
|
|
megamog75 Enchanter
Joined: 20 Nov 2002 Posts: 627 Location: USA
|
Posted: Tue Sep 16, 2003 6:17 am |
have you tried #if ? this would take some setting up something like this:
#TRIGGER {hello(*)} {#var new %replace( "%1", " ", "|");#var new %replace( @new, ".", "");#forall @new {#if %i=hello {eco}}}
just an example |
|
|
|
jolopez Novice
Joined: 31 May 2003 Posts: 49
|
Posted: Tue Sep 16, 2003 11:13 am |
i have do with forall and if asking for patterns
but i want know why if i put the
pattern hello
value #cw blue
#show eco
and if i put hello and hello
both hellos becomes blue but only appears one eco |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Sep 16, 2003 6:25 pm |
There are a few special-purpose trigger types, such as #CW, which check for every occurence of the pattern. Most triggers don't. It's too slow.
|
|
|
|
|
|