Home  Contents

mtd16.isNestedTag

Mtd16 Core4 Lua Commands

SYNOPSIS

flag = mtd16.isNestedTag(tag)

DESCRIPTION

Check if tag is of type Request, Answer or Message. If tag is not a number, it is looked up in the table mtd16.lutTag to get its numerical value.

RETURN VALUE

Returns true or false indicating if the passed tag is one of the nested types.

ERRORS

Raises an error if msgCode could not be converted to a number by looking it up in mtd16.lutTag.

EXAMPLE

print(mtd16.isNestedTag(0xF00F), mtd16.isNestedTag(0x3001))
true false

SEE ALSO