CAPL Script

Val Of Id

Syntax

long valOfId(dword id);

long valOfId(message m);

Function

Returns the value of a message identifier independent of its type. Identifier as long value.

Parameters

Variable of the typemessageorIdportion of a message.

Return Values

Identifier as long value.

on message *{long x;x = valOfId(this);write("Received Identifier: %d",x);output(this);}