Skip to content

Modern Map IsEmpty

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

Home › Map › Map › IsEmpty

IsEmpty

Returns true if the map has no entries.

Syntax

IsEmpty( ) as boolean

Examples

#import "std/containers"
using containers

dim ages as Map( of ustring, integer )
print ages.IsEmpty               '' true

ages.Put( "ada", 36 )
print ages.IsEmpty               '' false

ages.Clear( )
print ages.IsEmpty               '' true

Library: Map
Category: Map
Documented under: Members

Clone this wiki locally