Find - FormList

From Creation Kit
Jump to: navigation, search

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.

Syntax

Int Function Find(Form apForm) Native

Parameters

  • apForm: The form whose index is to be returned.

Return Value

  • apForm's index as an Int.

Examples

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

See Also