Scrip check multiple fields

Hello,

Would someone be kind enough to provide me with an example of checking
against multiple fields in a scrip custom condition?

For example the below scrip checks if Owner is being set to 9. How can I
also check which queue the ticket is currently in within the same condition?

return 0 unless $self->TransactionObj->Type eq “Set”;
return 0 unless $self->TransactionObj->Field eq “Owner”;

return 0 unless $self->TransactionObj->NewValue eq “9”;
return 1;

Thanks,

–Maks

Ext 201
P. 203-876-7978 - F. 203-876-2810
maks@activetelephones.com

Le 03/06/2016 � 21:31, maks a �crit :

Hello,

How can I
also check which queue the ticket is currently in within the same condition?

return 0 unless $self->TicketObj->QueueObj->Name eq ‘blah’;