Difference between revisions of "IsInList"

From the Fallout3 GECK Wiki
Jump to navigation Jump to search
imported>Cipscis
m (→‎Notes: This hasn't been tested, but makes perfect sense to me)
imported>Odessa
(Clarified common mistake)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=='''Description'''==
{{Function
|origin = GECK1
|summary = Returns True (1) if the calling reference's <b>base object</b> is contained in the specified [[FormList]].
|name = IsInList
|returnVal = 0, 1
|returnType = int
|referenceType = [Object]
|arguments =
  {{FunctionArgument
  |Name = FormListID
  |Type = 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.


'''*[[IsInList]]'''  This function takes a FormList as a parameter and returns 1 if the reference's base object is a member of the FormList or 0 if it is not.
==See Also==
 
*[[IsRefInList]]
=='''Syntax'''==
*[[IsWeaponInList]]
 
*[[ListGetFormIndex]]
IsInList FormListREF
*[[ListAddForm]]
 
*[[ListAddReference]]
=='''Examples'''==
*[[ListRemoveForm]]
 
*[[ListRemoveNthForm]]
IsInList FormList1
*[[ListReplaceForm]]
 
*[[ListReplaceNthForm]]
=='''Notes'''==
*[[ListGetNthForm]]
*IsInList can be used as a kind of GetIsBaseObject command.  If the FormList that the reference is checked against contains only one Base Object, then IsInList will return 1 if the base object of the reference is the one used in the list, and 0 if it is not.
*[[ListGetCount]]
 
*[[AddFormToFormList]]
=='''See Also'''==
[[IsWeaponInList]]
 
=='''Reference'''==
None provided.
<!-- [[IsInList_Reference|List of functions that use IsInList]] (wiki) -->


[[Category:List Functions]]
[[Category:List Functions (GECK 1.1)]]
[[Category:Condition Functions]]
[[Category:Condition Functions (GECK 1.1)]]
[[Category:Functions]]
[[Category:Functions]]
[[Category:Condition 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