Editing ListGetFormIndex

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{Function
{{Function
  |origin = FOSE1
  |origin = FOSE1
  |summary = Returns the index for the specified form if it is found exactly in the specified form list, otherwise returns constant -1 (not found).
  |summary = Returns the index for the specified form
  |name = ListGetFormIndex
  |name = ListGetFormIndex
  |returnType = int
  |returnType = int
Line 13: Line 13:
   }}
   }}
}}
}}
==Example==
<pre>
int iIndex
set iIndex to ListGetFormIndex GoodspringersList, SunnyREF
</pre>
==Notes==
*The first form in the list is at index 0, and the last is equal to ([[ListGetCount|ListGetCount - 1]]).
==See Also==
*[[IsInList]] (Checks for base objects only)
*[[IsRefInList]] (Indexes both exact and base/leveled matches)
*[[ListGetCount]]
[[Category:Functions_(FOSE)]] [[Category:List_Functions]]
[[Category:Functions_(FOSE)]] [[Category:List_Functions]]

Please note that all contributions to the Fallout3 GECK Wiki are considered to be released under the Creative Commons Attribution-ShareAlike (see GECK:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)