simple one liner...

Hi,

Can anyone please just help out with this one liner?

if ([/queue simple find name="queue name"]) do={ :log info "found" } else={ :log info "info not found" }

Basic idea is that if the queue exists, I want to update it, otherwise, create a new one.

For loops and huge scripts is completely out. There’s quite a few thousand queues, and looping through the list isn’t going to work.

if ([/queue simple print count-only where name="queuename"]=1) do={ :log info "found" } else={ :log info "info not found" }

Seems to work… Anything better? :smiley: