Home  Contents

mtd16:isEmpty

Mtd16 Core4 Lua Commands

SYNOPSIS

flag = msg:isEmpty()

DESCRIPTION

Checks if msg is empty, in other words, it contains no data. A message containing invalid data is not empty, but neither is it valid.

RETURN VALUE

Returns a boolean indicating if msg is empty.

EXAMPLE

>  > 
msg = mtd16.new() print(msg:isEmpty())
true
>  > 
msg:appendMessageCode(0xF00F) print(msg:isEmpty())
false

SEE ALSO