WoW:API HasAction: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Copy-edit to fit {{wowapi}})
m (Move page script moved page API HasAction to API HasAction without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


Tests if an action slot is occupied.
Tests if an action slot is occupied.
{{Code/Begin}}
hasAction = HasAction(actionSlot)
hasAction = HasAction(actionSlot)
 
{{Code/End}}
{{clr}}
== Parameters ==
== Parameters ==
''Arguments''
''Arguments''

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