User Function - @isnull

Description:
This function tests whether a particular data field in a trace record is null.  The field is determined to be null if any of the following conditions are true: Syntax:
@isnull(PROTOCOL_FIELD_ID)

Arguments:
PROTOCOL_FIELD_ID A protocol field identifier in the form <PROTOCOL_ID>:<FIELD_ID>.

Returns:
True if any of the conditions described above is met.

Example:
The following example tests whether the routing information field in a Token Ring frame is null:

    @isnull(TOK:RI)

The following example tests whether the command field in an HTTP frame is not null:

    not(@isnull(HTTP:CMD.STR))

Tips:
This function can be very useful in conjunction with the not operator, if you wish to test whether a particular field is present and has contents, but you do not necessarily care what the contents of that field are.  If, however, you wish to test for the presence of a particular protocol in the current record, the @protocol() function would be a better choice.


Copyright © 2000-2001 Golden Code Development Corporation.  ALL RIGHTS RESERVED.