Skip to content

Modern Array IsEmpty

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Array › Array Container › IsEmpty

IsEmpty

Returns true if the array has no elements.

Syntax

IsEmpty( ) as boolean

Examples

#import "std/containers"
using containers

dim v as Array( of int32 )
print v.IsEmpty          '' true

v.Push( 1 )
print v.IsEmpty          '' false

v.Clear( )
print v.IsEmpty          '' true -- Clear drops the elements

Library: Array Container
Category: Array
Documented under: Members

Clone this wiki locally