Find - FormList
Member of: FormList Script
Finds the specified form in the form list and returns its index or returns -1 if it's not a member.
SyntaxEdit
Int Function Find(Form apForm) Native
ParametersEdit
- apForm: The form whose index is to be returned.
Return ValueEdit
- apForm's index as an Int.
ExamplesEdit
Int iIndex = PotionFLST.Find(WhiteRussianALCH)
If iIndex == - 1
Debug.Trace("WhiteRussianALCH is not a member of the PotionFLST.")
Else
Debug.Trace("WhiteRussianALCH is a member of the PotionFLST and its index is " + iIndex + ".")
EndIf