(I know this example doesn't make a lot of sense since everything would be set to "purple")
Code: Select all
Jack := {profession: "teacher"
, height: "tall"
, country: "USA"
, city: "New York"}
Paul := {profession: "cook"
, height: "short"
, country: "UK"
, city: "London"}
Bill := {profession: "designer"
, height: "short"
, country: "Canada"
, city: "Toronto"}
Max := {profession: "driver"
, height: "tall"
, country: "USA"
, city: "Dallas"}
Bill := {profession: "policeman"
, height: "tall"
, country: "Australia"
, city: "Canberra"}
Person := {Jack: Jack
, Paul: Paul
, Bill: Bill
, Max: Max
, Bill: Bill}
{
for k1,v1 in person
{
for k2,v2 in person[k1]
{
person[k1][k2] := "purple"
msgbox, %k1% %k2% %v2%
}
}
}