# For Each User Data Instance In User Type
Grammar — For each instance in userType do (Actions)
Flags —SubFunctions
|Action
Runs the contained actions once for each instance in the User Type.
# Arguments
anyvariable
— Instancestring
<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)
}
# 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 —