WoW:API CursorHasItem: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Move page script moved page API CursorHasItem to API CursorHasItem without leaving a redirect) |
||
(5 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
[[ | |||
[[ | Returns 1 if the cursor currently holds an item, nil otherwise. | ||
hasItem = CursorHasItem() | |||
== Arguments == | |||
:nil | |||
== Returns == | |||
:; hasItem : [[Boolean]] - Whether the cursor is holding an item. | |||
== Note == | |||
This function returns nil if the item on the cursor is a merchant item (e.g. an item that was not picked up via [[API_PickupContainerItem|PickupContainerItem]]). |
Latest revision as of 04:45, 15 August 2023
← WoW API < CursorHasItem
Returns 1 if the cursor currently holds an item, nil otherwise.
hasItem = CursorHasItem()
Arguments[edit]
- nil
Returns[edit]
- hasItem
- Boolean - Whether the cursor is holding an item.
Note[edit]
This function returns nil if the item on the cursor is a merchant item (e.g. an item that was not picked up via PickupContainerItem).