ds_map_size

Returns the size of given ds_map.

Syntax:

ds_map_size(id);


Argument Description
id The id of the data structure to check.


Returns: Real


Description

With this function you can find how many key/values pairs the (previously created) ds_map contains.


Example:

if ds_map_size(inventory) > 49
   {
   full = true;
   }

The above code will check the size of the ds_map (ie: number of key/value pairs) and if it is greater than 49 it sets the variable "full" to true.


Back: DS Maps
Next: ds_map_find_first
© Copyright YoYo Games Ltd. 2018 All Rights Reserved