Merge pull request #106768 from Leftyluupy/typeof-example

Typeof example in @GlobalScope
This commit is contained in:
Thaddeus Crews
2025-12-08 11:53:42 -06:00
+1 -1
View File
@@ -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!")