[rt-users] help with scrip
Gene LeDuc
gleduc at mail.sdsu.edu
Mon Oct 27 15:24:20 EDT 2008
Hi Violetta,
I've been on vacation so I didn't see your message until today. I'm
confused by your mail because there was no "unless" clause in any of the
code that I saw or suggested. The snippet you included doesn't have one
either - it's a simple "if" conditional:
if ( A && ! (B || C) ) {
do_this;
and_this;
}
Where is the "unless" clause coming from?
Gene
At 11:53 PM 10/19/2008, Violetta Wawryk wrote:
>Hi Gene,
>
>good idea, thanks. But didn't work either. The scip is than always
>applicable and always applies the customfield which it should not do. *args*
>
>I also tried unless, but than I get the errormessage:
>
>Scrip 17 IsApplicable failed: syntax error at (eval 950) line 1, near
>"->Subject unless"
>
>So I guess this strange perl doesn't know unless.
>
>Somehow I cannot believe that noone ever tried something like this.
>
>Frustated Greetings
>Violetta
>
>
>Gene LeDuc schrieb:
>>Hi Violetta,
>>Try this:
>>if ( $self->TransactionObj->Type eq "Create" &&
>> ! ( $self->TicketObj->Subject =~ /proje[c|k]t: /i ||
>> $self->TicketObj->Subject =~ /akut: /i ) )
>>Regards,
>>Gene
>
>
>--
>Gene LeDuc, GSEC
>Security Analyst
>San Diego State University
More information about the rt-users
mailing list