# For Each User Data Value In User Type Field Array

Grammar — For each value value of type userDataType in array instance, field of userType, do (Actions)
FlagsSubFunctions | Action

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

# Arguments

  • string<gamelink::User> — User Type
  • string<userinstance> — Instance
  • string<userfield> — Field
  • anyvariable — Value
  • anyvariable — Variable
  • int<preset::UserDataTypeFunctionRefGet> — User Data Type

Returns — void

#AUTOVAR(userType, string) = #PARAM(userType);
#AUTOVAR(instance, string) = #PARAM(instance);
#AUTOVAR(field, string) = #PARAM(field);
#AUTOVAR(i) = 1;
for ( ; #AUTOVAR(i) <= UserDataFieldValueCount(#AUTOVAR(userType),#AUTOVAR(field)) ; #AUTOVAR(i) += 1 ) {
    #PARAM(value) = #PARAM(userDataType)(#AUTOVAR(userType),#AUTOVAR(instance),#AUTOVAR(field), #AUTOVAR(i));
    #SUBFUNCS(actions)
}

Category: User Data / Loops

# Examples

— None found —