diff --git a/tutorial_gdscript_efficiently.md b/tutorial_gdscript_efficiently.md index b8b0e32..ae37f50 100644 --- a/tutorial_gdscript_efficiently.md +++ b/tutorial_gdscript_efficiently.md @@ -248,15 +248,15 @@ var d = { } print("Name: ", d.name, " Age: ", d.age ) # used "." based indexing -d.name="caroline" #works for assignment + +# indexing d.nother="rebecca" #this doesn't work (use syntax below to add a key:value pair) d["mother"]="rebecca" #this works - +d.name="caroline" # if key exists, assignment does work, this is why it's like a quick struct. ``` -