With this function you can find the value stored in the priority queue with the lowest priority, and if more than one value has the same priority then any one of them could be returned in any order. However, unlike ds_priority_delete_min, this function will not remove the value from the queue.
|id||The id of the priority queue to use.|
Real or String
The above code checks an instance variable and if it returns true it will execute a script indexed in the priority queue with the lowest priority value.