# 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)
Flags —SubFunctions
|Action
Runs the contained actions once for each instance in the User Type.
# Arguments
string
<gamelink::User> — User Typestring
<userinstance> — Instancestring
<userfield> — Fieldanyvariable
— Valueanyvariable
— Variableint
<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)
}
# Related
Category: User Data / Loops
- For Each User Data Instance In User Type — macro
- For Each User Data Value In User Type Field Array — macro
# Examples
— None found —