|
Xphere Beginner
Joined: 08 Jun 2004 Posts: 26 Location: USA
|
Posted: Tue Jun 08, 2004 7:04 pm
Staring at this too long please help |
ok sorta narrowed down my problem.
and i know im missing something stupid. i need outside help.
----------------------------------
#IF ((%line =~ @EndLine)|(%concat(%line,"$")=@EndLine)) {blah} {blah}
^ Syntax Error
#VAR Endline }
EndofCDT
----------------------------------
so yeah my value for @EndLine is
---------------------
}
EndOfCDT
---------------------
what am i overlooking.. its not making a pattern match..
ive been staring at this too long. i know im being blind. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Tue Jun 08, 2004 10:11 pm |
I don't think you are going to have much luck trying to match a multiline variable, especially one which includes delimiter characters, as an #IF pattern-matching condition. Try just putting your pattern in a trigger. No #IF, no variable, just the actual pattern you want to match.
#TR { ~}$ EndOfCDT} {your boring blah-blah-blah (no originality at all)} |
|
|
|
Xphere Beginner
Joined: 08 Jun 2004 Posts: 26 Location: USA
|
Posted: Tue Jun 08, 2004 10:45 pm |
k well my problem is i need it to loop
#IF ((%line =~ @EndLineOne)|(%concat(%line,"$")=@EndLineOne)) {#SET CaptureLines 3 1} {<@LineCapCommandOne>} {looplines|param=1000|notrig|disable}
know of anyother way to do this?
i can match multi line Vars else where, just not in a %line =~ @VarName Statement.
would you like me to actually post my whole trigger? |
|
|
|
Xphere Beginner
Joined: 08 Jun 2004 Posts: 26 Location: USA
|
Posted: Tue Jun 08, 2004 10:56 pm |
ok never mind here it is.. just incase anyone was curious
---------------------------------------
#CLASS {MultiLineCap} {enable}
#VAR StartLineOne { Value :
{
Type : 65534}
#VAR StartCapCommandThree {#GAG} {#GAG}
#VAR LineCapCommandOne {#GAG} {#GAG}
#VAR EndLineTwo { EndOfCDT}
#VAR EndCapCommandTwo { ExceptionSched :
{
}
EndOfCDT}
#VAR EndCapCommandThree { {
PackagedDaysName : Holiday
PackagedDaysId : 8
BackColor : 255
ForeColor : 0
MaxTimeInterval : 4
EventList :
{
}
Priority : 0
}
{
PackagedDaysName : Turn On All Day
PackagedDaysId : 9
BackColor : 65280
ForeColor : 0
MaxTimeInterval : 4
EventList :
{
{
DateTime : 12/30/1900 5:00:00 AM
Value :
{
Type : 2
Value : 1.000000
}
Note :
}
{
DateTime : 12/30/1900 11:00:00 PM
Value :
{
Type : 2
Value : 0.000000
}
Note :
}
}
Priority : 16
}
{
PackagedDaysName : Special Event1
PackagedDaysId : 10
BackColor : 16750344
ForeColor : 0
MaxTimeInterval : 4
EventList :
{
{
DateTime : 12/30/1900 7:00:00 AM
Value :
{
Type : 2
Value : 1.000000
}
Note :
}
{
DateTime : 12/30/1900 8:00:00 PM
Value :
{
Type : 2
Value : 0.000000
}
Note :
}
}
Priority : 16
}
{
PackagedDaysName : Special Event2
PackagedDaysId : 11
BackColor : 11099391
ForeColor : 0
MaxTimeInterval : 4
EventList :
{
}
Priority : 0
}
{
PackagedDaysName : Special Event3
PackagedDaysId : 12
BackColor : 16731066
ForeColor : 0
MaxTimeInterval : 3
EventList :
{
{
DateTime : 12/30/1900 7:30:00 AM
Value :
{
Type : 2
Value : 1.000000
}
Note :
}
{
DateTime : 12/30/1900 6:00:00 PM
Value :
{
Type : 2
Value : 0.000000
}
Note :
}
}
Priority : 16
}
}
EndOfCDT
EndObject}
#VAR EndLineThree {EndObject}
#VAR LineCapCommandTwo {#GAG} {#GAG}
#VAR StartCapCommandTwo {#GAG} {#GAG}
#VAR StartLineTwo { ExceptionSched :
{}
#VAR EndCapCommandOne { Value :
{
Type : 65535
Value : 080000001100FFF
}
EndOfCDT}
#VAR EndLineOne { EndOfCDT}
#VAR LineCapCommandThree {#GAG} {#GAG}
#VAR StartCapCommandOne {#GAG} {#GAG}
#VAR StartLineThree { {
PackagedDaysName : Holiday}
#TRIGGER "CaptureLines" {@StartLineOne} {#IF (@StartCapCommandOne) {<@StartCapCommandOne>}}
#COND {} {#IF ((%line =~ @EndLineOne)|(%concat(%line,"$")=@EndLineOne)) {#SET CaptureLines 3 1} {<@LineCapCommandOne>}} {looplines|param=3000|notrig}
#COND {} {#IF (@EndCapCommand) {<@EndCapCommand>};#SET CaptureLines 4 1} {manual}
#COND {@StartLineTwo} {#IF (@StartCapCommandTwo) {<@StartCapCommandTwo>}}
#COND {} {#IF ((%line =~ @EndLineTwo)|(%concat(%line,"$")=@EndLineTwo)) {#SET CaptureLines 6 1} {<@LineCapCommandTwo>}} {looplines|param=3000|notrig}
#COND {} {#IF (@EndCapCommand) {<@EndCapCommand>} {#SET CaptureLines 7 1}} {manual}
#COND {@StartLineThree} {#IF (@StartCapCommandThree) {<@StartCapCommandThree>}}
#COND {} {#IF ((%line =~ @EndLineThree)|(%concat(%line,"$")=@EndLineThree)) {#SET CaptureLines 9 1} {<@LineCapCommandThree>}} {looplines|param=2000|notrig}
#COND {} {#STATE CaptureLines 0;#RESET MultiLineCap;#IF (@EndCapCommandThree) {<@EndCapCommandThree>}} {manual}
#CLASS 0
-------------------------------------- |
|
|
|
Xphere Beginner
Joined: 08 Jun 2004 Posts: 26 Location: USA
|
Posted: Tue Jun 08, 2004 11:02 pm |
oh and even if i change the VAR value to be a single line, it still doesnt work.. its almost like somethings breaking, either in the multi-state trig or something.. i dunno, the thinking continues
|
|
|
|
|
|