optl — element status number of bytes.

Description:

u8 optl;

Returns number of bytes of element status sent the event.

Return values:

Returns number of bytes of element status sent the event. Type of return value u8.

Example:

<item addr=“524:248“ MS=“509:16” name="Test for optl function" type="script">

V-ID/509:16
{
	u8 status = optl;

	if(status == 1) 
		setStatus(2014:32, {1, "1 byte"});

	if(status == 2) 
		setStatus(2014:32, {1, "2 byte"});

	if(status == 3) 
		setStatus(2014:32, {1, "3 byte"});
}

</item>

The result of performing the example in the interface:

The message with number of element status bytes is displayed in the interface.