ForEachInList
From GECK
A function added by the New Vegas Script Extender version 6.2.5.
Contents
Description
Takes a FormList and a UDF and executes the function once for each element in the list.
Syntax
ForEachInList source:formList function:udf/lambda
Example
ref rIter ForEachInList MyFormList ({rIter} => printvar rIter)
Will print each element in the formlist to console.
Notes
- This is an alternative to ForEach which may be less verbose, but is less flexible (can't use control-flow statements like Break).
See Also
- ForEach - supports more sophisticated FormList looping
- Ar_ForEach - equivalent for Array Variables
- Lambda
- NVSE Expressions