|
dracx Beginner
Joined: 14 Oct 2000 Posts: 26 Location: USA
|
Posted: Tue Mar 12, 2002 3:03 am
Trigger on expressions? |
I saw a setting in the settings editor for triggers that were set as expressions instead of patterns.
Does this mean I can do this?:
#TR {@a=@b} {#say @c}
Dracx |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Mar 12, 2002 4:08 am |
Yes you can. You can use any expression hence something like:
((@a+23)*5<@b)&(@b<200)
(@test="testing")|(@test="still testing")
However these triggers are only checked when a variables value changes, so you sort of have to avoid expresions like:
%ctime=100
%trigger(AutoLog)=0
Do check out the Support library Advanced Triggers document to see the future of triggers. |
|
|
|
|
|