HasForm - FormList

Member of: FormList Script

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

SyntaxEdit

bool Function HasForm(Form akForm) native

ParametersEdit

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

Return ValueEdit

Whether the form exists in this list or not.

ExamplesEdit

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

NotesEdit

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 AlsoEdit