Skip to main content

Count occurrences of a value in process queue (proc_queue_count_value)

Declaration

count = proc_queue_count_value(key, target_value)

Parameters

  • key
    String.
  • target_value
    String. The value to count.

Returns

  • count
    Integer. Number of occurrences of the value in the queue.

Notes

  • Available for versions after 20250106.
  • All process queues whose names start with "xxtouch." or "1ferver." are preserved.
  • Count occurrences of a specific value in a queue.

Example

local count = proc_queue_count_value("billnos", "name")
if count ~= 0 then
print(count)
else
print("no bill")
end