# For Each User Data Instance In User Type

Grammar — For each instance in userType do (Actions)
FlagsSubFunctions | Action

Runs the contained actions once for each instance in the User Type.

# Arguments

  • anyvariable — Instance
  • string [ gamelink::User ] — User Type

Returns — void

#AUTOVAR(userType, string) = #PARAM(userType);
#AUTOVAR(i) = 1;
for ( ; #AUTOVAR(i) <= UserDataInstanceCount(#AUTOVAR(userType)) ; #AUTOVAR(i) += 1 ) {
    #PARAM(instance) = UserDataInstance(#AUTOVAR(userType), #AUTOVAR(i));
    #SUBFUNCS(actions)
}

Category: User Data / Loops

# Examples

— None found —