From bf1867aaab8d34ee2524f5b703214bb1c2684eb7 Mon Sep 17 00:00:00 2001 From: m Date: Mon, 30 Jul 2018 00:04:32 -0400 Subject: Added Python-like .get() method to Dictionary in GDScript #20488 Added .get() method to Dictionary class in GDScript to return the value if the key exists, or return Null if the key does not exist. --- doc/classes/Dictionary.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/Dictionary.xml b/doc/classes/Dictionary.xml index 06c996e13e..cc58c56404 100644 --- a/doc/classes/Dictionary.xml +++ b/doc/classes/Dictionary.xml @@ -87,6 +87,17 @@ Return the list of values in the [code]Dictionary[/code]. + + + + + + + + + Returns the current value for the specified key in the [code]Dictionary[/code]. If the key does not exist, the method returns the value of the optional default argument, or Null if it is omitted. + + -- cgit v1.2.3