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 _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com