WoW:API ShowHelm: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(→‎Arguments: also accepts zero)
(Updated the flag to link to Boolean, fixed code example, and removed broken link to the old forums.)
Line 7: Line 7:
:(flag)
:(flag)


:;flag : Boolean - true, helm is shown.  false, helm is not shown. Also accepts 0 as false [http://forums.worldofwarcraft.com/thread.html?topicId=62049109&postId=625232451&sid=1#7].
:;flag : [[Boolean]] - true, helm is shown.  false or nil, helm is not shown.


----
----
;''Example''
;''Example''
  /script if not ShowHelm('true') then ShowHelm('false') else ShowHelm('true') end;
  /script if not ShowHelm(true) then ShowHelm(false) else ShowHelm(true) end;


;''Result''
;''Result''
Toggles displaying your helm.
Toggles displaying your helm.
----
{{Stub/API}}

Revision as of 14:48, 8 June 2007

Enables or disables display of your helm.

ShowHelm(flag);

Parameters

Arguments

(flag)
flag
Boolean - true, helm is shown. false or nil, helm is not shown.

Example
/script if not ShowHelm(true) then ShowHelm(false) else ShowHelm(true) end;
Result

Toggles displaying your helm.