WoW:API HasAction: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API HasAction to API HasAction without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<center>'''HasAction''' - ''Documentation by [[User:Flickering|Flickering]]''</center>
{{wowapi}} __NOTOC__


Test if an action slot is occupied.
Tests if an action slot is occupied.
hasAction = HasAction(actionSlot)


hasAction = HasAction(actionSlot)
== Parameters ==
== Parameters ==
=== Arguments ===
''Arguments''
:(actionSlot)


:;actionSlot : Numeric - The action slot to test.
:;actionSlot - [[ActionSlot]] : The tested action slot.
=== Returns ===
''Returns''
:hasAction


:;hasAction : Flag - nil if the specified slot is empty, 1 if the slot contains an action.
:;hasAction - Flag
----
:* 1, if the slot contains an action
__NOTOC__
:* nil, if the slot is empty
{{Template:WoW API}}
[[Category:API Functions|HasAction]]
[[Category:API Action Functions|HasAction]]

Latest revision as of 04:46, 15 August 2023

WoW API < HasAction

Tests if an action slot is occupied.

hasAction = HasAction(actionSlot)

Parameters[edit]

Arguments

actionSlot - ActionSlot
The tested action slot.

Returns

hasAction - Flag
  • 1, if the slot contains an action
  • nil, if the slot is empty