Writing a custom condition for a script

I was reading over the Scripts section of RT Essentials.

As stated $self -> TicketObj -> status eq ‘deleted’;

Is true whenever the status is changed to deleted.

Can someone point me the correct direction with a code line that would say:

if the value of CustomFiled “Retry” is 2

Thanks

I was reading over the Scripts section of RT Essentials. ** **


As stated $self → TicketObj → status eq ‘deleted’;

It should be Status not status.

Is true whenever the status is changed to deleted.

Not correct statement. Correct description is “Is true whenever something
is changed and status is deleted”. To check what was changed you have to
use TransactionObj.

**

Can someone point me the correct direction with a code line that would say:



if the value of CustomFiled “Retry” is 2

http://requesttracker.wikia.com/wiki/CustomConditionSnippets#Checks_with_Custom_Fields

**


Thanks****


Best regards, Ruslan.