HasForm - FormList
From Creation Kit
Member of: FormList Script
Returns whether the passed-in form exists in this form list.
Contents |
Syntax
bool Function HasForm(Form akForm) native
Parameters
- akForm: The form to look for in this form list.
Return Value
Whether the form exists in this list or not.
Examples
; Does the "fireball" spell exist in the "firespell" list? if fireSpell.HasForm(Fireball) Debug.Trace("Fireball is a fire spell!") endIf
Notes
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.

