The screen below shows an example of a queued call flow that uses a condition to test the value of the call variable $POS for the queued caller.
A condition QueueSize was created. The Compare element added to the condition tests whether the value of $POS is greater than 4.
In the call flow:
When the caller is in queue positions 1 to 4, the value the condition is false. The caller is passed to a Queue Position action and hear their queue position before returning to the queue.
When the caller is in queue position 5, the value of the condition is true. The caller is asked to leave a message.