HasForm - FormList

From the CreationKit Wiki
Jump to navigation Jump to search

Member of: FormList Script

Returns whether the passed-in form exists in this form list.

Syntax[edit | edit source]

bool Function HasForm(Form akForm) native

Parameters[edit | edit source]

  • akForm: The form to look for in this form list.

Return Value[edit | edit source]

Whether the form exists in this list or not.

Examples[edit | edit source]

; Does the "fireball" spell exist in the "firespell" list?
if fireSpell.HasForm(Fireball)
  Debug.Trace("Fireball is a fire spell!")
endIf

Notes[edit | edit source]

Form lists inside form lists will not be checked for items. If you ask a form list if it has a form and that form is inside a nested form list this function will return false.

See Also[edit | edit source]