Reply To: Kill a Message in a IF Statement

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Kill a Message in a IF Statement Reply To: Kill a Message in a IF Statement

#58422
Michael Lacriola
Participant

    The answer is yes. Your options are a few if not many. “If” you are going to use a Xlate, place a “SUPPRESS” statement as the last line. Somewhere before that, use an “IF” statement to test a value in the PID not equal to @null (say PID.#1). If true, then place a “CONTINUE” statement within the “IF” as the last statement. The SUPPRESS will ensure that the outbound message structure does not get sent, while the CONTINUE statement will send the outbound structure onto the next TPS statk. It is important that the CONTINUE is the last statement within the IF and all other Xlate commands are before it.

    In a TPS, you will need to search the msgdta string for, let’s say PID|. If found then set your disposition to “CONTINUE”, else set it to “KILL.”

    Hope this gets you going in the right direction.