result = query(select data_value from queue_table where numeric_key = (select max(numeric_key) from queue_table);) if result.recordCount == 0 then // queue is empty else delete from queue_table where numeric_key = (select max(numeric_key) from queue_table); endifI would be greatful if somebody with access made this change. (Note that I am not the original author of the above snippet. However, it is not signed and using errors for decision branching is a smell in my opinion.) Thanks, --top
UserName (required):