From 66d179daee4df6045a787530b4c50bd29932a5db Mon Sep 17 00:00:00 2001 From: reduz Date: Sat, 20 Sep 2014 08:47:30 -0700 Subject: [PATCH] Updated tutorial_gdscript_efficiently (markdown) --- tutorial_gdscript_efficiently.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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. ``` -