Difference between revisions of "IsInList"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Omzy
m
imported>Odessa
(Clarified common mistake)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{Function
  |origin = GECK1
  |origin = GECK1
  |summary = Checks if the calling reference's base object is contained in the specified [[FormList]].
  |summary = Returns True (1) if the calling reference's <b>base object</b> is contained in the specified [[FormList]].
  |name = IsInList
  |name = IsInList
  |returnVal = 0, 1
  |returnVal = 0, 1
Line 14: Line 14:
}}
}}
==Notes==
==Notes==
*Use [[ListGetFormIndex]] to find the index of the form in the [[FormList]].
*Will return False (0) if the calling reference is contained in the list exactly (reference is itself in form list and not it's base form).
*Use [[ListGetFormIndex]] (FOSE/NVSE) if you need to check if a reference is contained itself in a form list.
*Or use [[IsRefInList]](NVSE) to match either base objects or references.


==See Also==
==See Also==
*[[IsRefInList]]
*[[IsWeaponInList]]
*[[ListGetFormIndex]]
*[[ListAddForm]]
*[[ListAddForm]]
*[[ListAddReference]]
*[[ListAddReference]]
Line 24: Line 29:
*[[ListReplaceNthForm]]
*[[ListReplaceNthForm]]
*[[ListGetNthForm]]
*[[ListGetNthForm]]
*[[ListGetFormIndex]]
*[[ListGetCount]]
*[[ListGetcount]]
*[[AddFormToFormList]]
*[[AddFormToFormList]]
*[[IsWeaponInList]]


[[Category:List Functions]]
[[Category:List Functions]]
[[Category:List Functions (GECK 1.1)]]
[[Category:Condition Functions]]
[[Category:Condition Functions]]
[[Category:Condition Functions (GECK 1.1)]]
[[Category:Functions]]
[[Category:Functions (GECK 1.1)]]

Latest revision as of 18:29, 1 July 2014

< [[::Category:Functions|Category:Functions]]

A function included in the GECK version 1.1.0.36.

Description

Returns True (1) if the calling reference's base object is contained in the specified FormList.

Syntax

[help]
(0, 1:int) [Object].IsInList FormListID:ref

Example

SamAdamsBeerRef.IsInList AlcoholicDrinks

Notes

  • Will return False (0) if the calling reference is contained in the list exactly (reference is itself in form list and not it's base form).
  • Use ListGetFormIndex (FOSE/NVSE) if you need to check if a reference is contained itself in a form list.
  • Or use IsRefInList(NVSE) to match either base objects or references.

See Also