Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tutorials/scripting/gdscript/gdscript_basics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2005,6 +2005,12 @@ The following pattern types are available:
[42, ..]:
print("Open ended array")

.. warning::

Array patterns do not match packed arrays (such as ``PackedStringArray``).
Call ``Array(packed_array)`` to convert them into arrays before matching with array patterns.


- Dictionary pattern
Works in the same way as the array pattern. Every key has to be a constant pattern.

Expand Down
Loading