matchport()

Returns true if the specified port group contains a combination of a port and a protocol, and false otherwise.

Syntax

matchport(PORTS_GUID, PORT_EXPR, PROTO_EXPR)
Required Parameters
PORTS_GUID
Port group GUID. The GUID string must be a valid port group identifier. If you specify an invalid port group GUID, the query fails.
PORT_EXPR
Expression to specify the port number. The value must be an integer between 0 and 65535. If the expression cannot be evaluated or the value is not valid, the function returns false.
PROTO_EXPR
Expression to specify the protocol. Only TCP or UDP strings are allowed. If the expression cannot be evaluated or the value is not valid, the function returns false.