Mod:Creation Kit/Find - FormList

Member of: Mod:Creation Kit/FormList Script

Searches for the specified form in the form list, returning its index (or a negative number if the form isn't found in the list)

Syntax
int Function Find(Form apForm) native

Parameters

 * apForm: Form to search for

Return Value
The index of the form in the form list. If the form isn't found, this number will be negative.

Examples
int index = GemList.Find(Diamond) if index < 0 Debug.Trace("Diamond doesn't exist in the form list!") else Debug.Trace("Diamond is in the form list at position " + location) endIf
 * Find the diamond in the form list