Modifying the IfPriotiyExceeds ScripCondition

I would like to modify the IfPriotiyExceeds ScripCondition so that it
also checks if the Ticket transaction performed was a Comment or
Correspondence. The following is the conditional statement from actual
code:

if ($self->TicketObj->Priority > $self->Argument) {
return(1);
}
else {
return(undef);
}

I’m pretty sure all I need to do is add “OR” statement, but how to
I test the type of Ticket transaction?

Thanks for any help.

Bolivar Geraldo (Junior)
NOC Analyst