exist . context . sncode
latest
Check for a key in an hash array
EXIST
NAME
exist - Check if an element exist in a context.
SYNOPSIS
exist (context, element);
DESCRIPTION
This function is used to check if a key (element) exist in a context
PARAMETERS
- context
- Specifies the context
- element
- Specifies the key
RETURN
- A boolean set to tru if element is a key in the context
EXAMPLES
assoc = { "x" : 1, "y" : 2 };
assoc.exist("x"); return true
assoc.exist("a"); return false
exist(assoc, "y"); return true;
AUTHOR
Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>