Go to main content

exist

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;

SEE ALSO

AUTHOR

Written by Pierre Laplante and Caroline Laplante, <laplante@sednove.com>

MODIFICATIONS

1.0 2014-09-09 21:24:14 laplante@sednove.com

Edit

© 2021 extenso Inc. All rights reserved.