Complete Lua newb here. I'm using if not mq.TLO.Cursor.ID() then mq.cmd() however I'm running into an issue when there are multiple items on the cursor. It seems if the item is destroyed, for a split second, mq.TLO.Cursor.ID() == nil and the mq.cmd() is ran before the next item is updated. I've tried adding mq.delay() but that doesn't seem to make a difference. Is there a function to determine if there are multiple items? Or is there a better way to do this? I'm hoping someone can point me in the right direction as my searching has led me to a dead end.

