You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-31 18:41:20 +00:00
Changed typeof() example to include typeof()
Co-Authored-By: Leftyluupy <99181178+leftyluupy@users.noreply.github.com>
This commit is contained in:
@@ -1428,7 +1428,7 @@
|
||||
var json = JSON.new()
|
||||
json.parse('["a", "b", "c"]')
|
||||
var result = json.get_data()
|
||||
if result is Array:
|
||||
if typeof(result) == TYPE_ARRAY:
|
||||
print(result[0]) # Prints "a"
|
||||
else:
|
||||
print("Unexpected result!")
|
||||
|
||||
Reference in New Issue
Block a user