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

if ($self->TicketObj->Priority > $self->Argument) {
else {

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