WoW:API CheckButton GetChecked: Difference between revisions

m
(→‎Returns: - Not actually a boolean)
Line 1: Line 1:
{{widgetmethod}}
{{widgetmethod}}


Returns the current checked state of the button.  
Returns the current checked state of the button.  
  isChecked = CheckButton:GetChecked()
  isChecked = CheckButton:GetChecked()


== Arguments ==
:none


== Arguments ==
== Returns ==
None
:; isChecked :{{api|boolean|t=t}} - 'true' if the button state is checked. Default is 'false'.


== Notes ==
* As of 6.0.2, return value type was changed to the Lua native {{api|boolean|t=t}} type, instead of a WoW Flag style {{api|Boolean|t=t}} (1 for a checked button, nil otherwise).


== Returns ==
== See also ==
:; isChecked : Flag - 1 if the check button is checked, or nil otherwise.
* {{api|CheckButton:SetChecked|t=w}}