Background for Skyrim SE
Member of the StorageUtil script
intfunctionIntListCountValue(FormObjKey, stringKeyName, intvalue, boolexclude=false)NativeGlobal

Description

Documentation Comment

Get the number of occurrences of a specific value within a list.

ObjKey: form to check on. Set none to check global list.
KeyName: name of list.
value: value to look for.
[optional] exclude: if true, function will return number of elements NOT equal to value.


Caveats


Parameters

FormObjKey

stringKeyName

intvalue

boolexclude=false


Examples

Auto-Generated Example

Form myForm__ObjKey
string myString__KeyName
int myInt__value
bool myBool__exclude

int returnedValue = StorageUtil.IntListCountValue(myForm__ObjKey, myString__KeyName, myInt__value, myBool__exclude)
Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.