API CursorHasItem

Returns 1 if the cursor currently holds an item, nil otherwise. hasItem = CursorHasItem

Returns

 * hasItem : - Whether the cursor is holding an item.

Note
This function returns nil if the item on the cursor was not picked up via PickupContainerItem, e.g. items from the guild bank (which are picked up via PickupGuildBankItem) or a merchant item.