API GetActionCount

Counts the available uses of certain kinds of actions. text = GetActionCount(actionSlot)

Arguments

 * actionSlot : - An action slot ID.

Returns

 * text : - How often an item-based action (see details) may be performed; or always zero for other action types.

Details

 * Use with and  to confirm that 'zero' is due to having zero uses of an item-based action, rather than always returning zero.
 * In Classic, use with to ignore abilities that require a reagent; or alternatively use with  if the itemID of a reagent is known.
 * In Retail, use with for abilities with multiple charges.

Example
The following example originates from an older version of FrameXML/ActionButton.lua to display a number on each action button if applicable.