length_bool_map

This function yields the number of elements contained in a BOOL MAP.

length_bool_map ( MAP_to_be_counted )

The function returns a NUMBER, which is the number of elements stored in the Map.

This function has one parameter:

  1. MAP_to_be_counted, MAP of type BOOL. A MAP of which the number of elements will be counted.

Example

MAP BOOL test_map 

ASSIGN test_map ["first"] := TRUE
ASSIGN test_map ["second"] := FALSE
ASSIGN test_map ["third"] := TRUE
ASSIGN test_map ["fourth"] := TRUE
ASSIGN test_map ["fifth"] := FALSE
NUMBER length_function_result

ASSIGN length_function_result := length_bool_map (test_map)

#
@(length_function_result)
#

Referencing a MAP element will result in the creation of that element. The element will be created with a default value; 0 for NUMBER, "" for TEXT and FALSE for BOOL. For instance the test IF testing["1"] THEN FI will result in the creation of element 1 in MAP testing.