ds_queue_tail

Reads the value from the tail of the queue.

Syntax:

GML Code Example

ds_queue_tail(id);


Argument Description
id The id of the data structure to read from.


Returns: Real or String


Description

This function will only read the last value of the queue (that which is "at the tail"). It will not dequeue the value, meaning that it can still be read in the future by this function or the ds_queue_dequeue.


Example:

GML Code Example

num = ds_queue_tail(control_queue);

The above code will read the value from the queue indexed in the variable "control_queue" and store the return value in the variable "num".


Back: Queues



No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here