Skip to content

MAP_contains_str

BigETI edited this page May 4, 2018 · 1 revision

Description

Map contains (key[] as string)

Returns

true if successful, otherwise false

Syntax

bool:MAP_contains_str(Map:map, const key[])

Example

new Map:map;
MAP_insert_str_val(map, "This is a test.", 1);
printf("Value%s found", (MAP_contains_str(map, "This is a test.") ? ("") : (" not")));