is array () empty?

From PenguinMod Wiki (Official)
Revision as of 19:43, 9 March 2024 by wikia:penguinmod>MediansSC (Removed tag because images were added)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Is array () empty?
Jump to navigation Jump to search

The is array () empty? block is a boolean block that reports true if the entered in array is empty and false otherwise. The default value for this block is "["A", "B", "C"]".

Workaround

This block can be worked around by checking if the length of the array is 0 using the equals block and the length of array () block.