# For Each Catalog Entry In Catalog

Grammar — For each entry entry in catalog catalog do (Actions)
FlagsSubFunctions | Action

Runs the contained actions once for each entry in the catalog (default entries does not count).

# Arguments

  • int<preset::CatalogType> — Catalog
  • anyvariable — Entry

Returns — void

#AUTOVAR(catalog, int) = #PARAM(catalog);
#AUTOVAR(i) = 1;
for ( ; #AUTOVAR(i) <= CatalogEntryCount(#PARAM(catalog)) ; #AUTOVAR(i) += 1 ) {
    #PARAM(entry) = CatalogEntryGet(#AUTOVAR(catalog), #AUTOVAR(i));
    #SUBFUNCS(actions)
}

Category: Catalog / Loops

# Examples

— None found —