# For Each Value In Catalog Field Array
Grammar — For each val of catalog entry fieldPath for player player
Flags —SubFunctions
|Action
Runs the contained actions once for each value for a field for an entry.
# Arguments
int
[ preset::CatalogType ] — Catalogstring
[ catalogentry ] — Entrystring
[ catalogfieldpath ] — Field Pathint
— Playeranyvariable
— Value
Returns — void
#AUTOVAR(catalog, int) = #PARAM(catalog);
#AUTOVAR(entry, string) = #PARAM(entry);
#AUTOVAR(fieldPath, string) = #PARAM(fieldPath);
#AUTOVAR(player, int) = #PARAM(player);
#AUTOVAR(i) = 0;
for ( ; #AUTOVAR(i) <= CatalogFieldValueCount(#PARAM(catalog),#AUTOVAR(entry),#AUTOVAR(fieldPath),#AUTOVAR(player))-1 ; #AUTOVAR(i) += 1 ) {
#PARAM(val) = CatalogFieldValueGet(#PARAM(catalog),#AUTOVAR(entry),#AUTOVAR(fieldPath)+"["+IntToString(#AUTOVAR(i))+"]",#AUTOVAR(player));
#SUBFUNCS(actions)
}
# Related
Category: Catalog / Loops
- [F] —
void
— For Each Catalog Entry In Catalog — ( ) - [F] —
void
— For Each Value In Catalog Field Array — ( ) - [F] —
void
— For Each Scope Field Value In Catalog Field Scope Array — ( )
# Examples
— None found —