GetSize - FormList

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search

Member of: FormList Script

Returns the number of items in the list.

Syntax[edit | edit source]

int Function GetSize() native

Parameters[edit | edit source]

None

Return Value[edit | edit source]

Returns the number of forms in the list

Examples[edit | edit source]

; Print out the forms in the list
FormList property list auto
int index = 0
While (index < list.GetSize())
  Debug.Trace("Form " + index + " is " + list.GetAt(index))
  index = index + 1
EndWhile

See Also[edit | edit source]