If my understand is accurate, would something like the below be correct? >> return 0 unless $self->TransactionObj->Type eq "Set"; >> return 0 unless $self->TransactionObj->Field eq "Queue"; >> return 1 unless $self->TransactionObj->OldValue eq 'QueueName';
I'm assuming here that the condition will result in '1' (fail) if the OldValue does not evaluate to be 'QueueName'. If OldValue does evaluate to be QueueName then the condition returns '0' resulting in the Scrip running. -- Nick Fennell ApplianSys Support Team Leader ApplianSys Limited University of Warwick Science Park Business Innovation Centre Harry Weston Road Coventry CV3 2TX t: +44 (0) 870 7707 789 s: nick-fennell www.appliansys.com Our sales team sells by referral: Less time looking for customers, more time looking after them Subscribe: http://eepurl.com/ibKtY On 8 Jan 2013, at 18:49, Thomas Sibley <[email protected]> wrote: > On 01/08/2013 10:08 AM, Nick Fennell wrote: >> Hey Kevin/All. >> >> I've been trying with; >> >> return 0 unless $self->TransactionObj->Type eq "Set"; >> return 0 unless $self->TransactionObj->Field eq "Queue"; >> return 0 unless $self->TransactionObj->OldValue eq 'QueueName'; >> >> but not having much luck. >> >> Anyone able to advise further? > > You need to return 1 at some point. The condition doesn't default to true. >
