|
Jared242004 Beginner
Joined: 28 Jul 2004 Posts: 21 Location: Canada
|
Posted: Thu Aug 05, 2004 11:57 pm
greater then less then trigger |
My trigger is set for board with a list of Monthly/Yearly exp
For Monthly:
Jared 360983
For Yearly:
Jared 26987234
my trigger is set up for
Jared (%n)
#if (%n < 2000000) {#var month %n} {#var year %n}
Is it some simple I am missing?
Please help!
Thanks
Jared |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Aug 06, 2004 4:25 am |
Yes, it's something simple. %n is used in the trigger pattern only.
(for use in settings editor)
Pattern: Jared (%n)
Value: #IF (%1 < 2000000) {#VAR month %1} {#VAR year %1} |
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
|
Jared242004 Beginner
Joined: 28 Jul 2004 Posts: 21 Location: Canada
|
Posted: Sat Aug 07, 2004 8:44 pm Re: greater then less then trigger |
Actually sorry the Trigger is to act one these
Monthly/Yearly exp
For Monthly:
(%n)) Jared 360983 17 spaces in this one
For Yearly:
(%n)) Jared 26987234 18 spaces in this one
my trigger is set up for
Jared (%n)
#if (%1 < 2000000) {#var month %1} {#var year %1}
And it keeps putting the years exp in month and I change the order of value
to #if (%1 < 2000000) {#var year %1} {#var month %1}
and still puts it into month
Is it some simple I am missing?
Please help!
Thanks
Jared |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sun Aug 08, 2004 6:00 am |
%1 is the first item in parentheses.
%n doesn't match spaces. You'll need %s for that.
#TR {Jared %s (%n)} {#IF (%1 < 2000000) {#VAR month %1} {#VAR year %1}}
Or, since you can tell by the number of spaces which variable the number should go in, just write two triggers -- one for the month with 17 spaces in the pattern and one for the year with 18 spaces. |
|
_________________ LightBulb
Senior member
Most scripts in this forum are written for Command Line entry.
Don't even open the Settings Editor unless its use is specified or obvious. |
|
|
|
|
|