Queue.empty Shared function

From Gothic 2 Online: Wiki
Jump to navigation Jump to search

Method check current queue is empty.

Syntax

int queue.len()

Returns

true or false

Example

addEventHandler("onInit",function(pid)
{
	local test_queue = queue();

	test_queue.push(1); // this two lines are adding some values into queue
	test_queue.push(2);

	print(test_queue.empty()); // this will print "false"
});

Related functions